Skip to content

Commit a37b7c3

Browse files
committed
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.
1 parent dec061f commit a37b7c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libmariadb/mariadb_lib.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2946,7 +2946,7 @@ mysql_get_proto_info(MYSQL *mysql)
29462946
const char * STDCALL
29472947
mysql_get_client_info(void)
29482948
{
2949-
return (char*) MARIADB_CLIENT_VERSION_STR;
2949+
return (char*) MARIADB_PACKAGE_VERSION;
29502950
}
29512951

29522952
static size_t get_store_length(size_t length)
@@ -3968,7 +3968,7 @@ int STDCALL mysql_set_server_option(MYSQL *mysql,
39683968

39693969
ulong STDCALL mysql_get_client_version(void)
39703970
{
3971-
return MARIADB_VERSION_ID;
3971+
return MARIADB_PACKAGE_VERSION_ID;
39723972
}
39733973

39743974
ulong STDCALL mysql_hex_string(char *to, const char *from, unsigned long len)

0 commit comments

Comments
 (0)