diff options
author | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2009-07-03 13:22:06 +0500 |
---|---|---|
committer | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2009-07-03 13:22:06 +0500 |
commit | 45d59063cb5c835c01d4744ad3b3b4c141a639a2 (patch) | |
tree | c61beca7f9b0c101c8775660abed41660f9db71e /mysql-test/t/warnings.test | |
parent | 61488d2abbaef189b45fa076a540d37088eceb7a (diff) | |
download | mariadb-git-45d59063cb5c835c01d4744ad3b3b4c141a639a2.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 'mysql-test/t/warnings.test')
-rw-r--r-- | mysql-test/t/warnings.test | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/t/warnings.test b/mysql-test/t/warnings.test index 12421170eba..176f320e390 100644 --- a/mysql-test/t/warnings.test +++ b/mysql-test/t/warnings.test @@ -225,4 +225,11 @@ insert into t2 values(@q); drop table t1, t2; +# +# Bug#42364 SHOW ERRORS returns empty resultset after dropping non existent table +# +--error ER_BAD_TABLE_ERROR +DROP TABLE t1; +SHOW ERRORS; + --echo End of 5.0 tests |