2010-05-20 08:31:03 +02:00
|
|
|
SET @old_debug = @@GLOBAL.debug;
|
2008-02-26 16:03:59 +01:00
|
|
|
set debug= 'T';
|
|
|
|
select @@debug;
|
|
|
|
@@debug
|
|
|
|
T
|
|
|
|
set debug= '+P';
|
|
|
|
select @@debug;
|
|
|
|
@@debug
|
|
|
|
P:T
|
|
|
|
set debug= '-P';
|
|
|
|
select @@debug;
|
|
|
|
@@debug
|
|
|
|
T
|
2010-05-19 14:31:18 +02:00
|
|
|
SELECT @@session.debug, @@global.debug;
|
|
|
|
@@session.debug @@global.debug
|
|
|
|
T
|
|
|
|
SET SESSION debug = '';
|
|
|
|
SELECT @@session.debug, @@global.debug;
|
|
|
|
@@session.debug @@global.debug
|
|
|
|
|
2010-04-16 09:30:53 +02:00
|
|
|
#
|
|
|
|
# Bug #52629: memory leak from sys_var_thd_dbug in
|
|
|
|
# binlog.binlog_write_error
|
|
|
|
#
|
|
|
|
SET GLOBAL debug='d,injecting_fault_writing';
|
|
|
|
SELECT @@global.debug;
|
|
|
|
@@global.debug
|
|
|
|
d,injecting_fault_writing
|
|
|
|
SET GLOBAL debug='';
|
|
|
|
SELECT @@global.debug;
|
|
|
|
@@global.debug
|
|
|
|
|
2010-05-20 08:31:03 +02:00
|
|
|
SET GLOBAL debug=@old_debug;
|
2010-04-16 09:30:53 +02:00
|
|
|
End of 5.1 tests
|