mirror of
https://github.com/MariaDB/server.git
synced 2025-08-31 22:22:30 +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,18 @@ set debug= '-P';
|
||||
select @@debug;
|
||||
@@debug
|
||||
T
|
||||
set session debug="t";
|
||||
show session variables like 'debug';
|
||||
Variable_name Value
|
||||
debug t
|
||||
set session debug="t";
|
||||
show session variables like 'debug';
|
||||
Variable_name Value
|
||||
debug t
|
||||
set session debug="d:t";
|
||||
show session variables like 'debug';
|
||||
Variable_name Value
|
||||
debug d:t
|
||||
show session variables like 'debug';
|
||||
Variable_name Value
|
||||
debug t
|
||||
|
Reference in New Issue
Block a user