[CONC-488] Connector C 3.1.9 returns 100403 from mysql_get_client_version() Created: 2020-08-14  Updated: 2020-08-15

Status: Open
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: 3.1.9
Fix Version/s: None

Type: Task Priority: Minor
Reporter: FLAESCH Sebastien Assignee: Georg Richter
Resolution: Unresolved Votes: 0
Labels: None


 Description   

I am a bit confused with client version info and a full MariaDB client & server package versus Connector C source compilation...

My C program uses mysql_get_client_version() to get the client version.

When installing the mariadb-10.5.4-linux-systemd-x86_64.tar.gz package, mysql_get_client_version() returns the version number 100504 ... ok....

After compiling Connector C 3.1.9 sources, mysql_get_client_version() returns the version number 100403 ...
Is this expected?

Looking at following page, it says that Connector C 3.1.9 is included in MariaDB 10.5.4 :

https://mariadb.com/kb/en/about-mariadb-connector-c/

I am a bit confused... is this a bug ?



 Comments   
Comment by Georg Richter [ 2020-08-14 ]

Hi Sebastien,

When old GPL licensed libmysql was replaced by MariaDB Connector/C (10.2 and above) we changed the version number to the corresponding server version to prevent breakage of existing applications.

I agree that this is not optimal since there is no api function available to check the version of the Connector/C itself.
I reclassified this bug as a feature, since we need to implement a new api function to detect the exact version of Connector/C. I need to discuss it with server team, however it will take 2-3 weeks due to summer holidays.

Comment by FLAESCH Sebastien [ 2020-08-15 ]

Thank you Georg for your quick answer!
There is no hurry, we just needed some clarification.
So far we don't have code that depends on the client version.
It's only for trace/debug purpose that we print the client version in our logs.

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