1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Bug #25146: Some warnings/errors not shown when using --show-warnings

In several cases, an error when processing the query would cause mysql to
return to the top level without printing warnings.  Fix is to always
print any available warnings before returning to the top level.
This commit is contained in:
tsmith@ramayana.hindu.god
2007-11-20 17:03:56 -07:00
parent b0d01ab27d
commit 6a193c5528
3 changed files with 54 additions and 23 deletions

View File

@@ -290,3 +290,21 @@ remove_file $MYSQLTEST_VARDIR/tmp/bug21412.sql;
--disable_query_log
--exec $MYSQL --server-arg=no-defaults test -e "quit"
--enable_query_log
#
# Bug #25146: Some warnings/errors not shown when using --show-warnings
#
# This one should succeed with no warnings
--exec $MYSQL --show-warnings test -e "create table t1 (id int)"
# This should succeed, with warnings about conversion from nonexistent engine
--exec $MYSQL --show-warnings test -e "create table t2 (id int) engine=nonexistent"
# This should fail, with warnings as well
--error 1
--exec $MYSQL --show-warnings test -e "create table t2 (id int) engine=nonexistent"
drop tables t1, t2;
--echo End of tests