[MDEV-27933] setting the version system server variable changes type of VERSION() Created: 2022-02-24 Updated: 2022-02-28 Resolved: 2022-02-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | libmariadb |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5, 10.6, 10.7 |
| Fix Version/s: | 10.2.42, 10.3.33, 10.4.23, 10.5.14, 10.6.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Mariusz Felisiak | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | crash, docker | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
We noticed some issues when trying to use `mariadb-devel` containers from quay.io/mariadb-foundation/mariadb-devel with mysqlclient that are not reproducible with containers from the docker hub :
To reproduce you can execute any query:
it crashes with:
when I will remove 0 to Decimal converter than VERSION() returns bytes instead of strings:
|
| Comments |
| Comment by Daniel Black [ 2022-02-24 ] | ||||
|
Confirmed, manually changing the version somehow interferes with its type.
| ||||
| Comment by Daniel Black [ 2022-02-24 ] | ||||
|
Actually:
mysqlclient is probably relying on 5.5.5 as a mariadb identifier | ||||
| Comment by Daniel Black [ 2022-02-24 ] | ||||
|
Getting | ||||
| Comment by Sergei Golubchik [ 2022-02-25 ] | ||||
|
Fixed in | ||||
| Comment by Daniel Black [ 2022-02-28 ] | ||||
|
Removed version fixing in generated quay.io containers - https://github.com/MariaDB/mariadb.org-tools/commit/bafe0532097db4f515df7f48f3aaa53b192f817f mysqlclient's handling was somewhere deep in the linked C/C (probably MySQLs). |