mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +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++)
|
||||
{
|
||||
int rowcount= 0;
|
||||
my_val= i;
|
||||
|
||||
rc= mysql_stmt_execute(insert_stmt);
|
||||
@ -11233,7 +11234,8 @@ static void test_view_insert()
|
||||
|
||||
rc= mysql_stmt_execute(select_stmt);
|
||||
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(select_stmt);
|
||||
|
Reference in New Issue
Block a user