mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fix of BUG#45632 (http://bugs.mysql.com/bug.php?id=45632) - sharing non default debug settings between sessions. This bugfix proposed by Monty.
mysql-test/r/variables_debug.result: Test that sessions do not share the same session debug variable. mysql-test/t/variables_debug.test: Test that sessions do not share the same session debug variable. sql/set_var.cc: As soon as default setting are shared between sessions we should push dbug state before changing debug setting first time.
This commit is contained in:
@ -10,3 +10,31 @@ set debug= '+P';
|
||||
select @@debug;
|
||||
set debug= '-P';
|
||||
select @@debug;
|
||||
|
||||
#
|
||||
# Checks that assigning variable 'debug' in one session has no influence on
|
||||
# other session. (BUG#45632 of bugs.mysql.com)
|
||||
#
|
||||
connect(con1,localhost,root,,test,,);
|
||||
connect(con2,localhost,root,,test,,);
|
||||
|
||||
# makes output independant of current debug status
|
||||
connection con1;
|
||||
set session debug="t";
|
||||
show session variables like 'debug';
|
||||
connection con2;
|
||||
set session debug="t";
|
||||
show session variables like 'debug';
|
||||
|
||||
# checks influence one session debug variable on another
|
||||
connection con1;
|
||||
set session debug="d:t";
|
||||
show session variables like 'debug';
|
||||
connection con2;
|
||||
show session variables like 'debug';
|
||||
|
||||
disconnect con1;
|
||||
disconnect con2;
|
||||
|
||||
connection default;
|
||||
|
||||
|
Reference in New Issue
Block a user