summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSergey Glukhov <Sergey.Glukhov@sun.com>2009-07-03 13:22:06 +0500
committerSergey Glukhov <Sergey.Glukhov@sun.com>2009-07-03 13:22:06 +0500
commit99291584ca122c2f8e061333663ebcc821b51a90 (patch)
treec61beca7f9b0c101c8775660abed41660f9db71e /tests
parentd9bdac6d75b1894df8c515d15955b66996aafff5 (diff)
downloadmariadb-git-99291584ca122c2f8e061333663ebcc821b51a90.tar.gz
Bug#42364 SHOW ERRORS returns empty resultset after dropping non existent table
enabled message storing into error message list for 'drop table' command mysql-test/r/warnings.result: test result mysql-test/t/warnings.test: test case sql/sql_table.cc: We should skip error sending then we should return warnings to client as some functions may send its own errors, so we should set no_warnings_for_error= 0 only in case of warning. The fix is to enable message storing into error message list for 'drop table' command(only for error case). tests/mysql_client_test.c: test fix
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index b836293442a..73d0ab6ce1e 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -4769,6 +4769,8 @@ static void test_errors()
result= mysql_store_result(mysql);
mytest(result);
+ DIE_UNLESS(mysql_num_rows(result) == 1);
+
(void) my_process_result_set(result);
mysql_free_result(result);
}