summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorDavi Arnaut <Davi.Arnaut@Sun.COM>2010-03-08 11:30:20 -0300
committerDavi Arnaut <Davi.Arnaut@Sun.COM>2010-03-08 11:30:20 -0300
commit096cb4c6de2213f7cf0ca6ddc13f6de20ae50d94 (patch)
tree3f2db42be249619b882e5355c4d40c634507e2b6 /client
parent301b0786dd9d4fd1c8652d091ceca12cf6aefe2f (diff)
downloadmariadb-git-096cb4c6de2213f7cf0ca6ddc13f6de20ae50d94.tar.gz
Bug#37316: Anonymous error messages noticed sometimes, while running tests in MTR
The problem was that mysqltest could attempt to execute a SHOW WARNINGS statement through a connection that was not properly reaped, thus violating its own rules. The solution is to skip SHOW WARNINGS if a connection has not been properly repeaed.
Diffstat (limited to 'client')
-rw-r--r--client/mysqltest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysqltest.cc b/client/mysqltest.cc
index 867b2747707..141440a91d8 100644
--- a/client/mysqltest.cc
+++ b/client/mysqltest.cc
@@ -1256,7 +1256,7 @@ void die(const char *fmt, ...)
Help debugging by displaying any warnings that might have
been produced prior to the error
*/
- if (cur_con)
+ if (cur_con && !cur_con->pending)
show_warnings_before_error(&cur_con->mysql);
cleanup_and_exit(1);