summaryrefslogtreecommitdiff
path: root/mysql-test/t/variables_debug.test
blob: 640ffbb56194d657930a95923f756488793bf191 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
--source include/have_debug.inc

SET @old_debug = @@GLOBAL.debug;

#
# Bug#34678 @@debug variable's incremental mode
#

set debug= 'T';
select @@debug;
set debug= '+P';
select @@debug;
set debug= '-P';
select @@debug;

#
# Bug#38054: "SET SESSION debug" modifies @@global.debug variable
#

SELECT @@session.debug, @@global.debug;

SET SESSION debug = '';

SELECT @@session.debug, @@global.debug;

--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;

SET GLOBAL debug=@old_debug;

--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;

--echo End of 5.1 tests