2008-02-26 12:03:59 -03:00
|
|
|
--source include/have_debug.inc
|
|
|
|
|
2010-05-20 10:31:03 +04:00
|
|
|
SET @old_debug = @@GLOBAL.debug;
|
|
|
|
|
2008-02-26 12:03:59 -03:00
|
|
|
#
|
|
|
|
# Bug#34678 @@debug variable's incremental mode
|
|
|
|
#
|
|
|
|
|
|
|
|
set debug= 'T';
|
|
|
|
select @@debug;
|
|
|
|
set debug= '+P';
|
|
|
|
select @@debug;
|
|
|
|
set debug= '-P';
|
|
|
|
select @@debug;
|
2010-04-16 10:30:53 +03:00
|
|
|
|
|
|
|
--echo #
|
|
|
|
--echo # Bug #52629: memory leak from sys_var_thd_dbug in
|
|
|
|
--echo # binlog.binlog_write_error
|
|
|
|
--echo #
|
|
|
|
|
|
|
|
SET GLOBAL debug='d,injecting_fault_writing';
|
|
|
|
SELECT @@global.debug;
|
|
|
|
SET GLOBAL debug='';
|
|
|
|
SELECT @@global.debug;
|
|
|
|
|
2010-05-20 10:31:03 +04:00
|
|
|
SET GLOBAL debug=@old_debug;
|
2010-04-16 10:30:53 +03:00
|
|
|
|
2010-09-22 23:33:18 +04:00
|
|
|
--echo #
|
|
|
|
--echo # Bug #56709: Memory leaks at running the 5.1 test suite
|
|
|
|
--echo #
|
|
|
|
|
|
|
|
SET @old_local_debug = @@debug;
|
|
|
|
|
|
|
|
SET @@debug='d,foo';
|
|
|
|
SELECT @@debug;
|
|
|
|
SET @@debug='';
|
|
|
|
SELECT @@debug;
|
|
|
|
|
|
|
|
SET @@debug = @old_local_debug;
|
|
|
|
|
2010-04-16 10:30:53 +03:00
|
|
|
--echo End of 5.1 tests
|