[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 ... 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. |
| Comment by FLAESCH Sebastien [ 2020-08-15 ] |
|
Thank you Georg for your quick answer! |