diff options
author | rburnett@production.mysql.com <> | 2006-08-05 23:15:23 +0200 |
---|---|---|
committer | rburnett@production.mysql.com <> | 2006-08-05 23:15:23 +0200 |
commit | a73a9da34ba58478200eff2a883e705f094a7c7a (patch) | |
tree | 99918d5c2f9c655969a75179ab6e42c92be1535e /tests | |
parent | 609088915f59026233d228df51d741ef26c297fe (diff) | |
download | mariadb-git-a73a9da34ba58478200eff2a883e705f094a7c7a.tar.gz |
mysql_client_test.c:
Moving call that processes select results out of the assert
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c index e4b2374a698..0b94b482b7a 100644 --- a/tests/mysql_client_test.c +++ b/tests/mysql_client_test.c @@ -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); |