summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorunknown <rburnett@production.mysql.com>2006-08-05 23:15:23 +0200
committerunknown <rburnett@production.mysql.com>2006-08-05 23:15:23 +0200
commit46ed9d0b671660b2ca1d9558134344962ed8105f (patch)
tree99918d5c2f9c655969a75179ab6e42c92be1535e /tests
parent60a4f50c96039b47d1ffe1a66a41df7eef1663f7 (diff)
downloadmariadb-git-46ed9d0b671660b2ca1d9558134344962ed8105f.tar.gz
mysql_client_test.c:
Moving call that processes select results out of the assert tests/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.c4
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);