summaryrefslogtreecommitdiff
path: root/mysql-test/r/long_query_time_basic.result
blob: b44500dc1e231a149a7babd1c9c0f357df01292a (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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
SET @start_global_value = @@global.long_query_time;
SELECT @start_global_value;
@start_global_value
10
SET @start_session_value = @@session.long_query_time;
SELECT @start_session_value;
@start_session_value
10
'#--------------------FN_DYNVARS_068_01-------------------------#'
SET @@global.long_query_time = 100;
SET @@global.long_query_time = DEFAULT;
SELECT @@global.long_query_time;
@@global.long_query_time
10.000000
SET @@session.long_query_time = 200;
SET @@session.long_query_time = DEFAULT;
SELECT @@session.long_query_time;
@@session.long_query_time
10.000000
'#--------------------FN_DYNVARS_068_02-------------------------#'
SET @@global.long_query_time = DEFAULT;
SELECT @@global.long_query_time = 10;
@@global.long_query_time = 10
1
SET @@session.long_query_time = DEFAULT;
SELECT @@session.long_query_time = 10;
@@session.long_query_time = 10
1
'#--------------------FN_DYNVARS_068_03-------------------------#'
SET @@global.long_query_time = 0;
SELECT @@global.long_query_time;
@@global.long_query_time
0.000000
SET @@global.long_query_time = 1;
SELECT @@global.long_query_time;
@@global.long_query_time
1.000000
SET @@global.long_query_time = 60020;
SELECT @@global.long_query_time;
@@global.long_query_time
60020.000000
SET @@global.long_query_time = 31536000;
SELECT @@global.long_query_time;
@@global.long_query_time
31536000.000000
SET @@global.long_query_time = 65536;
SELECT @@global.long_query_time;
@@global.long_query_time
65536.000000
'#--------------------FN_DYNVARS_068_04-------------------------#'
SET @@session.long_query_time = 0;
SELECT @@session.long_query_time;
@@session.long_query_time
0.000000
SET @@session.long_query_time = 1;
SELECT @@session.long_query_time;
@@session.long_query_time
1.000000
SET @@session.long_query_time = 50050;
SELECT @@session.long_query_time;
@@session.long_query_time
50050.000000
SET @@session.long_query_time = 31536000;
SELECT @@session.long_query_time;
@@session.long_query_time
31536000.000000
SET @@session.long_query_time = 65550;
SELECT @@session.long_query_time;
@@session.long_query_time
65550.000000
'#------------------FN_DYNVARS_068_05-----------------------#'
SET @@global.long_query_time = 100000000000;
SELECT @@global.long_query_time;
@@global.long_query_time
31536000.000000
SET @@global.long_query_time = -1;
SELECT @@global.long_query_time;
@@global.long_query_time
0.000000
SET @@global.long_query_time = 65530.34.;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.' at line 1
SELECT @@global.long_query_time;
@@global.long_query_time
0.000000
SET @@global.long_query_time = test;
ERROR 42000: Incorrect argument type to variable 'long_query_time'
SELECT @@global.long_query_time;
@@global.long_query_time
0.000000
SET @@session.long_query_time = 100000000000;
SELECT @@session.long_query_time;
@@session.long_query_time
31536000.000000
SET @@session.long_query_time = -2;
SELECT @@session.long_query_time;
@@session.long_query_time
0.000000
SET @@session.long_query_time = 65530.34.;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.' at line 1
'Bug # 34837: Errors are not coming on assigning invalid values to variable';
SET @@session.long_query_time = test;
ERROR 42000: Incorrect argument type to variable 'long_query_time'
SELECT @@session.long_query_time;
@@session.long_query_time
0.000000
'#------------------FN_DYNVARS_068_06-----------------------#'
SELECT @@global.long_query_time = VARIABLE_VALUE 
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES 
WHERE VARIABLE_NAME='long_query_time';
@@global.long_query_time = VARIABLE_VALUE
1
'#------------------FN_DYNVARS_068_07-----------------------#'
SELECT @@session.long_query_time = VARIABLE_VALUE 
FROM INFORMATION_SCHEMA.SESSION_VARIABLES 
WHERE VARIABLE_NAME='long_query_time';
@@session.long_query_time = VARIABLE_VALUE
1
'#------------------FN_DYNVARS_068_08-----------------------#'
SET @@global.long_query_time = TRUE;
SELECT @@global.long_query_time;
@@global.long_query_time
1.000000
SET @@global.long_query_time = FALSE;
SELECT @@global.long_query_time;
@@global.long_query_time
0.000000
'#---------------------FN_DYNVARS_001_09----------------------#'
SET @@global.long_query_time = 10;
SELECT @@long_query_time = @@global.long_query_time;
@@long_query_time = @@global.long_query_time
0
'#---------------------FN_DYNVARS_001_10----------------------#'
SET @@long_query_time = 100;
SELECT @@long_query_time = @@local.long_query_time;
@@long_query_time = @@local.long_query_time
1
SELECT @@local.long_query_time = @@session.long_query_time;
@@local.long_query_time = @@session.long_query_time
1
'#---------------------FN_DYNVARS_001_11----------------------#'
SET long_query_time = 1;
SELECT @@long_query_time;
@@long_query_time
1.000000
SELECT local.long_query_time;
ERROR 42S02: Unknown table 'local' in field list
SELECT session.long_query_time;
ERROR 42S02: Unknown table 'session' in field list
SELECT long_query_time = @@session.long_query_time;
ERROR 42S22: Unknown column 'long_query_time' in 'field list'
SET @@global.long_query_time = @start_global_value;
SELECT @@global.long_query_time;
@@global.long_query_time
10.000000
SET @@session.long_query_time = @start_session_value;
SELECT @@session.long_query_time;
@@session.long_query_time
10.000000