diff options
author | Sergei Golubchik <serg@mariadb.org> | 2019-05-17 17:23:01 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-05-17 17:23:01 +0200 |
commit | c1fd027115ce9a32bcbe42796f4df58309636705 (patch) | |
tree | 49ba501be560c1aa17dbf4c066652c7d3b1b876b /tests | |
parent | e506bef430c3648f88469d42631136080db9f332 (diff) | |
parent | fae6539ef727b56bb5a58d4bbe515512e85ba2f4 (diff) | |
download | mariadb-git-c1fd027115ce9a32bcbe42796f4df58309636705.tar.gz |
Merge branch '10.2' into 10.3
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_test.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c index 0e772d1bf51..88e28f79789 100644 --- a/tests/mysql_client_test.c +++ b/tests/mysql_client_test.c @@ -8397,6 +8397,26 @@ static void test_list_fields() } +/* Test mysql_list_fields() with information_schema */ + +static void test_list_information_schema_fields() +{ + MYSQL_RES *result; + int rc; + myheader("test_list_information_schema_fields"); + + rc= mysql_select_db(mysql, "information_schema"); + myquery(rc); + result= mysql_list_fields(mysql, "all_plugins", NULL); + mytest(result); + rc= my_process_result_set(result); + DIE_UNLESS(rc == 0); + mysql_free_result(result); + rc= mysql_select_db(mysql, current_db); + myquery(rc); +} + + static void test_list_fields_default() { int rc, i; @@ -20865,6 +20885,7 @@ static struct my_tests_st my_tests[]= { { "test_fetch_column", test_fetch_column }, { "test_mem_overun", test_mem_overun }, { "test_list_fields", test_list_fields }, + { "test_list_information_schema_fields", test_list_information_schema_fields }, { "test_list_fields_default", test_list_fields_default }, { "test_free_result", test_free_result }, { "test_free_store_result", test_free_store_result }, |