You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-08 14:02:17 +03:00
Fix for CONC-457:
mysql_list_processlists was marked as deprecated in MySQL 4.0 and not updated anymore. It exists still in latest MySQL and MariaDB connectors. It now supports the 4.1 protocol, using 7 instead of 5 fields. The following functions are now marked deprecated in source: * mysql_list_dbs * mysql_list_tables * mysql_list_processes
This commit is contained in:
@@ -1426,8 +1426,18 @@ static int test_sslenforce(MYSQL *unused __attribute__((unused)))
|
||||
}
|
||||
#endif
|
||||
|
||||
static int test_conc457(MYSQL *mysql)
|
||||
{
|
||||
MYSQL_RES *result= mysql_list_processes(mysql);
|
||||
|
||||
FAIL_IF(mysql_field_count(mysql) != 9, "expected 9 columns");
|
||||
mysql_free_result(result);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
struct my_tests_st my_tests[] = {
|
||||
{"test_conc457", test_conc457, TEST_CONNECTION_DEFAULT, 0, NULL, NULL},
|
||||
{"test_conc384", test_conc384, TEST_CONNECTION_NONE, 0, NULL, NULL},
|
||||
#ifndef _WIN32
|
||||
{"test_mdev12965", test_mdev12965, TEST_CONNECTION_DEFAULT, 0, NULL, NULL},
|
||||
|
Reference in New Issue
Block a user