blob: 17dfdeea3f3f91ce162bec631076ac4b0f380042 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
SET @start_value = @@global.slow_query_log;
SELECT @start_value;
@start_value
1
'#---------------------FN_DYNVARS_004_01-------------------------#'
SET @@global.slow_query_log = DEFAULT;
SELECT @@global.slow_query_log = 0;
@@global.slow_query_log = 0
1
'#--------------------FN_DYNVARS_004_02------------------------#'
SET @@global.slow_query_log = ON;
SELECT @@global.slow_query_log;
@@global.slow_query_log
1
SET @@global.slow_query_log = OFF;
SELECT @@global.slow_query_log;
@@global.slow_query_log
0
'#--------------------FN_DYNVARS_004_03-------------------------#'
SET @@global.slow_query_log = 2;
ERROR 42000: Variable 'slow_query_log' can't be set to the value of '2'
SET @@global.slow_query_log = -1;
ERROR 42000: Variable 'slow_query_log' can't be set to the value of '-1'
SET @@global.slow_query_log = TRUEF;
ERROR 42000: Variable 'slow_query_log' can't be set to the value of 'TRUEF'
SET @@global.slow_query_log = TRUE_F;
ERROR 42000: Variable 'slow_query_log' can't be set to the value of 'TRUE_F'
SET @@global.slow_query_log = FALSE0;
ERROR 42000: Variable 'slow_query_log' can't be set to the value of 'FALSE0'
SET @@global.slow_query_log = OON;
ERROR 42000: Variable 'slow_query_log' can't be set to the value of 'OON'
SET @@global.slow_query_log = ONN;
ERROR 42000: Variable 'slow_query_log' can't be set to the value of 'ONN'
SET @@global.slow_query_log = OOFF;
ERROR 42000: Variable 'slow_query_log' can't be set to the value of 'OOFF'
SET @@global.slow_query_log = 0FF;
ERROR 42000: Variable 'slow_query_log' can't be set to the value of '0FF'
SET @@global.slow_query_log = ' ';
ERROR 42000: Variable 'slow_query_log' can't be set to the value of ' '
SET @@global.slow_query_log = " ";
ERROR 42000: Variable 'slow_query_log' can't be set to the value of ' '
SET @@global.slow_query_log = '';
ERROR 42000: Variable 'slow_query_log' can't be set to the value of ''
'#-------------------FN_DYNVARS_004_04----------------------------#'
SET @@global.slow_query_log = ON;
SET @@session.slow_query_log = ON;
SELECT @@session.slow_query_log;
@@session.slow_query_log
1
SET @@session.slow_query_log = OFF;
SELECT @@session.slow_query_log;
@@session.slow_query_log
0
SET @@global.slow_query_log = OFF;
SET @@session.slow_query_log = ON;
'#----------------------FN_DYNVARS_004_05------------------------#'
SELECT IF(@@global.slow_query_log, "ON", "OFF") = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='slow_query_log';
IF(@@global.slow_query_log, "ON", "OFF") = VARIABLE_VALUE
1
'#---------------------FN_DYNVARS_004_06----------------------#'
SET @@global.slow_query_log = 0;
SELECT @@global.slow_query_log;
@@global.slow_query_log
0
SET @@global.slow_query_log = 1;
SELECT @@global.slow_query_log;
@@global.slow_query_log
1
'#---------------------FN_DYNVARS_004_07----------------------#'
SET @@global.slow_query_log = TRUE;
SELECT @@global.slow_query_log;
@@global.slow_query_log
1
SET @@global.slow_query_log = FALSE;
SELECT @@global.slow_query_log;
@@global.slow_query_log
0
'#---------------------FN_DYNVARS_004_08----------------------#'
SET @@global.slow_query_log = ON;
SET @@local.slow_query_log = OFF;
SELECT @@slow_query_log = @@global.slow_query_log;
@@slow_query_log = @@global.slow_query_log
0
'#---------------------FN_DYNVARS_004_09----------------------#'
SELECT local.slow_query_log;
ERROR 42S02: Unknown table 'local' in field list
SELECT global.slow_query_log;
ERROR 42S02: Unknown table 'global' in field list
SELECT slow_query_log = @@session.slow_query_log;
ERROR 42S22: Unknown column 'slow_query_log' in 'field list'
SET @@global.slow_query_log = @start_value;
SELECT @@global.slow_query_log;
@@global.slow_query_log
1
|