2009-10-03 20:56:54 +02:00
|
|
|
#
|
|
|
|
# Checks that assigning variable 'debug' in one session has no influence on
|
|
|
|
# other session. (BUG#45632 of bugs.mysql.com)
|
|
|
|
#
|
|
|
|
# (this will not work with embedded server because mysqltest_embedded uses the
|
|
|
|
# same thread for all connections)
|
|
|
|
#
|
|
|
|
--source include/have_debug.inc
|
|
|
|
--source include/not_embedded.inc
|
|
|
|
|
|
|
|
connect(con1,localhost,root,,test,,);
|
|
|
|
connect(con2,localhost,root,,test,,);
|
|
|
|
|
|
|
|
# makes output independant of current debug status
|
|
|
|
connection con1;
|
2011-12-15 22:07:58 +01:00
|
|
|
set session debug_dbug="t";
|
2009-10-03 20:56:54 +02:00
|
|
|
show session variables like 'debug';
|
|
|
|
connection con2;
|
2011-12-15 22:07:58 +01:00
|
|
|
set session debug_dbug="t";
|
2009-10-03 20:56:54 +02:00
|
|
|
show session variables like 'debug';
|
|
|
|
|
|
|
|
# checks influence one session debug variable on another
|
|
|
|
connection con1;
|
2011-12-15 22:07:58 +01:00
|
|
|
set session debug_dbug="d:t";
|
2009-10-03 20:56:54 +02:00
|
|
|
show session variables like 'debug';
|
|
|
|
connection con2;
|
|
|
|
show session variables like 'debug';
|
|
|
|
|
|
|
|
disconnect con1;
|
|
|
|
disconnect con2;
|
|
|
|
|
|
|
|
connection default;
|
|
|
|
|
|
|
|
|