summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2017-03-10 22:44:52 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2017-03-10 22:44:52 +0100
commiteb574697c0fc6282b3c08695b1ad4ad1ca64315b (patch)
tree88c608ecb799595932ba3dd51812a0ff7c737bc7 /tests
parentf2fe5cb2825144dcd8d2383bd38bc83fa4eafdf1 (diff)
downloadmariadb-git-eb574697c0fc6282b3c08695b1ad4ad1ca64315b.tar.gz
fix test for windows 64
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_test.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index da486dfd442..5525a20271b 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -19460,23 +19460,31 @@ static void test_big_packet()
}
-/* Test simple prepares of all DML statements */
-
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, "ANALYZE SELECT 1", -1);
+ rc= mysql_stmt_prepare(stmt, query, strlen(query));
check_execute(stmt, rc);
- verify_param_count(stmt, 0);
+
rc= mysql_stmt_execute(stmt);
check_execute(stmt, rc);
- mysql_stmt_close(stmt);
+ 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[]= {