[CONC-509] mysql_get_client_version should return C/C version, not server version Created: 2020-10-22  Updated: 2021-08-09  Resolved: 2021-05-31

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: 3.1.10
Fix Version/s: 3.2.0

Type: Bug Priority: Major
Reporter: Georg Richter Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None


 Description   

The function mysql_get_client_info returns MARIADB_VERSION_ID which returns the server version instead of the actual connector version.
Since servers from 10.2 up to 10.6 always uses newest C/C version, it is impossible to detect client features depending on the version number.

Instead of mysql_get_client_info should return MARIADB_PACKAGE_VERSION_ID.



 Comments   
Comment by Adam Majer [ 2021-08-09 ]

This commit broke 3rd party software

https://bugreports.qt.io/browse/QTBUG-95071

If doing changes that break the API, maybe introducing a new function would be better and keep the legacy versions as-is.

Generated at Thu Feb 08 03:05:50 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.