diff options
author | Alexander Barkov <bar@mariadb.org> | 2017-03-18 14:20:06 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-03-18 14:20:06 +0400 |
commit | 7d0c354f5c354b45f9d9dadf2ff5ea02ba0b1071 (patch) | |
tree | f78a9c086879b1c4b068d2fb2fd99863beb51141 /tests | |
parent | b13ce223a886a0d3a28b243d5fee39ec608d5192 (diff) | |
parent | 6c5cfbbf3399887baff489f089641385c112c9a0 (diff) | |
download | mariadb-git-7d0c354f5c354b45f9d9dadf2ff5ea02ba0b1071.tar.gz |
Merge remote-tracking branch 'origin/10.2' into bb-10.2-ext
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_test.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c index a1c28f0d750..cc81663e1d1 100644 --- a/tests/mysql_client_test.c +++ b/tests/mysql_client_test.c @@ -19530,6 +19530,33 @@ static void test_big_packet() } +static void test_prepare_analyze() +{ + MYSQL_STMT *stmt; + const char *query= "ANALYZE SELECT 1"; + int rc; + myheader("test_prepare_analyze"); + + stmt= mysql_stmt_init(mysql); + check_stmt(stmt); + rc= mysql_stmt_prepare(stmt, query, strlen(query)); + check_execute(stmt, rc); + + rc= mysql_stmt_execute(stmt); + check_execute(stmt, rc); + + rc= mysql_stmt_store_result(stmt); + check_execute(stmt, rc); + + while (!(rc= mysql_stmt_fetch(stmt))) + ; + + DIE_UNLESS(rc == MYSQL_NO_DATA); + + rc= mysql_stmt_close(stmt); + check_execute(stmt, rc); +} + static struct my_tests_st my_tests[]= { { "disable_query_logs", disable_query_logs }, { "test_view_sp_list_fields", test_view_sp_list_fields }, @@ -19804,6 +19831,7 @@ static struct my_tests_st my_tests[]= { { "test_ps_sp_out_params", test_ps_sp_out_params }, { "test_compressed_protocol", test_compressed_protocol }, { "test_big_packet", test_big_packet }, + { "test_prepare_analyze", test_prepare_analyze }, { 0, 0 } }; |