| 1 |
# |
| 2 |
# Checks that assigning variable 'debug_dbug' in one session has no influence on |
| 3 |
# other session. (BUG#45632 of bugs.mysql.com) |
| 4 |
# |
| 5 |
# (this will not work with embedded server because mysqltest_embedded uses the |
| 6 |
# same thread for all connections) |
| 7 |
# |
| 8 |
--source include/have_debug.inc |
| 9 |
--source include/not_embedded.inc |
| 10 |
|
| 11 |
connect(con1,localhost,root,,test,,); |
| 12 |
connect(con2,localhost,root,,test,,); |
| 13 |
|
| 14 |
# makes output independant of current debug status |
| 15 |
connection con1; |
| 16 |
set session debug_dbug="t"; |
| 17 |
show session variables like 'debug_dbug'; |
| 18 |
connection con2; |
| 19 |
set session debug_dbug="t"; |
| 20 |
show session variables like 'debug_dbug'; |
| 21 |
|
| 22 |
# checks influence one session debug variable on another |
| 23 |
connection con1; |
| 24 |
set session debug_dbug="d:t"; |
| 25 |
show session variables like 'debug_dbug'; |
| 26 |
connection con2; |
| 27 |
show session variables like 'debug_dbug'; |
| 28 |
|
| 29 |
disconnect con1; |
| 30 |
disconnect con2; |
| 31 |
|
| 32 |
connection default; |
| 33 |
|
| 34 |
|