summaryrefslogtreecommitdiff
path: root/mysql-test/r/mdev375.result
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2012-07-31 18:32:46 +0200
committerSergei Golubchik <sergii@pisem.net>2012-07-31 18:32:46 +0200
commit42ea25d4c51b5466b4b03a29abe480e763732cf2 (patch)
tree80642573c4320e628ce495d166a551aa5048d51d /mysql-test/r/mdev375.result
parent9705ad5e339723382f914c48184441906359283b (diff)
downloadmariadb-git-42ea25d4c51b5466b4b03a29abe480e763732cf2.tar.gz
MDEV-375 Server crashes in THD::print_aborted_warning with log_warnings > 3
Don't use ER(xxx) in THD::close_connection(), when current_thd is already reset to NULL. Prefer ER_THD() or ER_DEFAULT() instead.
Diffstat (limited to 'mysql-test/r/mdev375.result')
-rw-r--r--mysql-test/r/mdev375.result14
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/r/mdev375.result b/mysql-test/r/mdev375.result
new file mode 100644
index 00000000000..32580804686
--- /dev/null
+++ b/mysql-test/r/mdev375.result
@@ -0,0 +1,14 @@
+SET GLOBAL log_warnings=4;
+SET GLOBAL max_connections=2;
+SELECT 1;
+1
+1
+SELECT 2;
+2
+2
+ERROR HY000: Too many connections
+SELECT 0;
+0
+0
+SET GLOBAL log_warnings=default;
+SET GLOBAL max_connections=default;