mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
mysql_client_test.c:
Moving call that processes select results out of the assert
This commit is contained in:
@ -11226,6 +11226,7 @@ static void test_view_insert()
|
|||||||
|
|
||||||
for (i= 0; i < 3; i++)
|
for (i= 0; i < 3; i++)
|
||||||
{
|
{
|
||||||
|
int rowcount= 0;
|
||||||
my_val= i;
|
my_val= i;
|
||||||
|
|
||||||
rc= mysql_stmt_execute(insert_stmt);
|
rc= mysql_stmt_execute(insert_stmt);
|
||||||
@ -11233,7 +11234,8 @@ static void test_view_insert()
|
|||||||
|
|
||||||
rc= mysql_stmt_execute(select_stmt);
|
rc= mysql_stmt_execute(select_stmt);
|
||||||
check_execute(select_stmt, rc);
|
check_execute(select_stmt, rc);
|
||||||
assert(i + 1 == (int) my_process_stmt_result(select_stmt));
|
rowcount= (int)my_process_stmt_result(select_stmt);
|
||||||
|
assert((i+1) == rowcount);
|
||||||
}
|
}
|
||||||
mysql_stmt_close(insert_stmt);
|
mysql_stmt_close(insert_stmt);
|
||||||
mysql_stmt_close(select_stmt);
|
mysql_stmt_close(select_stmt);
|
||||||
|
Reference in New Issue
Block a user