1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

CONC-509: mysql_get_client* api functions should return C/C version.

Instead of server version the api functions mysql_get_client_info and
mysql_get_client_version should return MARIADB_PACKAGE_VERSION/ID.
This commit is contained in:
Georg Richter
2021-05-31 12:44:51 +02:00
parent dec061fa95
commit a37b7c3965

View File

@@ -2946,7 +2946,7 @@ mysql_get_proto_info(MYSQL *mysql)
const char * STDCALL
mysql_get_client_info(void)
{
return (char*) MARIADB_CLIENT_VERSION_STR;
return (char*) MARIADB_PACKAGE_VERSION;
}
static size_t get_store_length(size_t length)
@@ -3968,7 +3968,7 @@ int STDCALL mysql_set_server_option(MYSQL *mysql,
ulong STDCALL mysql_get_client_version(void)
{
return MARIADB_VERSION_ID;
return MARIADB_PACKAGE_VERSION_ID;
}
ulong STDCALL mysql_hex_string(char *to, const char *from, unsigned long len)