mirror of
https://github.com/MariaDB/server.git
synced 2025-08-26 01:44:06 +03:00
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.
41 lines
842 B
Plaintext
41 lines
842 B
Plaintext
--source include/have_debug.inc
|
|
|
|
#
|
|
# Bug#34678 @@debug variable's incremental mode
|
|
#
|
|
|
|
set debug= 'T';
|
|
select @@debug;
|
|
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;
|
|
|