mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
fix test for windows 64
This commit is contained in:
parent
f2fe5cb282
commit
eb574697c0
1 changed files with 13 additions and 5 deletions
|
@ -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[]= {
|
||||
|
|
Loading…
Reference in a new issue