1
by brian
clean slate |
1 |
#
|
2 |
# test variables
|
|
3 |
#
|
|
4 |
--disable_warnings |
|
5 |
drop table if exists t1,t2; |
|
6 |
--enable_warnings |
|
7 |
||
8 |
#
|
|
9 |
# Bug #19263: variables.test doesn't clean up after itself (I/II -- save)
|
|
10 |
#
|
|
11 |
set @my_key_buffer_size =@@global.key_buffer_size; |
|
12 |
set @my_max_connect_errors =@@global.max_connect_errors; |
|
13 |
set @my_max_heap_table_size =@@global.max_heap_table_size; |
|
14 |
set @my_max_join_size =@@global.max_join_size; |
|
971.7.3
by Eric Day
Added net_buffer_length tests back in as oldlibdrizzle_buffer_length tests. |
15 |
set @my_oldlibdrizzle_buffer_length =@@global.oldlibdrizzle_buffer_length; |
1
by brian
clean slate |
16 |
set @my_server_id =@@global.server_id; |
17 |
set @my_storage_engine =@@global.storage_engine; |
|
1119.4.7
by Stewart Smith
make variables test not leave state of server in a modified state. i.e. fully |
18 |
set @my_myisam_sort_buffer_size =@@global.myisam_sort_buffer_size; |
1
by brian
clean slate |
19 |
|
20 |
# case insensitivity tests (new in 5.0)
|
|
21 |
set @`test`=1; |
|
22 |
select @test, @`test`, @TEST, @`TEST`, @"teSt"; |
|
23 |
set @TEST=2; |
|
24 |
select @test, @`test`, @TEST, @`TEST`, @"teSt"; |
|
25 |
set @"tEST"=3; |
|
26 |
select @test, @`test`, @TEST, @`TEST`, @"teSt"; |
|
27 |
set @`TeST`=4; |
|
28 |
select @test, @`test`, @TEST, @`TEST`, @"teSt"; |
|
29 |
select @`teST`:=5; |
|
30 |
select @test, @`test`, @TEST, @`TEST`, @"teSt"; |
|
31 |
||
32 |
set @select=2,@t5=1.23456; |
|
33 |
select @`select`,@not_used; |
|
34 |
set @test_int=10,@test_double=1e-10,@test_string="abcdeghi",@test_string2="abcdefghij",@select=NULL; |
|
35 |
# Expected result "1e-10", windows returns "1e-010"
|
|
36 |
--replace_result 1e-010 1e-10 |
|
37 |
select @test_int,@test_double,@test_string,@test_string2,@select; |
|
38 |
set @test_int="hello",@test_double="hello",@test_string="hello",@test_string2="hello"; |
|
39 |
select @test_int,@test_double,@test_string,@test_string2; |
|
40 |
set @test_int="hellohello",@test_double="hellohello",@test_string="hellohello",@test_string2="hellohello"; |
|
41 |
select @test_int,@test_double,@test_string,@test_string2; |
|
42 |
set @test_int=null,@test_double=null,@test_string=null,@test_string2=null; |
|
43 |
select @test_int,@test_double,@test_string,@test_string2; |
|
44 |
select @t1:=(@t2:=1)+@t3:=4,@t1,@t2,@t3; |
|
45 |
explain extended select @t1:=(@t2:=1)+@t3:=4,@t1,@t2,@t3; |
|
46 |
select @t5; |
|
47 |
||
48 |
#
|
|
49 |
# Test problem with WHERE and variables
|
|
50 |
#
|
|
51 |
||
620
by Brian Aker
Remove dead rand structures |
52 |
CREATE TABLE t1 (c_id INT NOT NULL, c_name VARCHAR(250), c_country VARCHAR(250), PRIMARY KEY(c_id)); |
1
by brian
clean slate |
53 |
INSERT INTO t1 VALUES (1,'Bozo','USA'),(2,'Ronald','USA'),(3,'Kinko','IRE'),(4,'Mr. Floppy','GB'); |
54 |
SELECT @min_cid:=min(c_id), @max_cid:=max(c_id) from t1; |
|
55 |
SELECT * FROM t1 WHERE c_id=@min_cid OR c_id=@max_cid; |
|
56 |
SELECT * FROM t1 WHERE c_id=@min_cid OR c_id=@max_cid OR c_id=666; |
|
57 |
ALTER TABLE t1 DROP PRIMARY KEY; |
|
58 |
select * from t1 where c_id=@min_cid OR c_id=@max_cid; |
|
59 |
drop table t1; |
|
60 |
||
61 |
#
|
|
62 |
# Test system variables
|
|
63 |
#
|
|
64 |
set GLOBAL max_join_size=10; |
|
65 |
set max_join_size=100; |
|
66 |
show variables like 'max_join_size'; |
|
67 |
select * from information_schema.session_variables where variable_name like 'max_join_size'; |
|
68 |
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR |
|
69 |
show global variables like 'max_join_size'; |
|
70 |
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR |
|
71 |
select * from information_schema.global_variables where variable_name like 'max_join_size'; |
|
72 |
set GLOBAL max_join_size=2000; |
|
73 |
show global variables like 'max_join_size'; |
|
74 |
select * from information_schema.global_variables where variable_name like 'max_join_size'; |
|
75 |
set max_join_size=DEFAULT; |
|
76 |
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR |
|
77 |
show variables like 'max_join_size'; |
|
78 |
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR |
|
79 |
select * from information_schema.session_variables where variable_name like 'max_join_size'; |
|
80 |
set GLOBAL max_join_size=DEFAULT; |
|
81 |
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR |
|
82 |
show global variables like 'max_join_size'; |
|
83 |
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR |
|
84 |
select * from information_schema.global_variables where variable_name like 'max_join_size'; |
|
85 |
set @@max_join_size=1000, @@global.max_join_size=2000; |
|
86 |
select @@local.max_join_size, @@global.max_join_size; |
|
87 |
select @@identity, length(@@version)>0; |
|
88 |
select @@VERSION=version(); |
|
89 |
select last_insert_id(345); |
|
90 |
explain extended select last_insert_id(345); |
|
91 |
select @@IDENTITY,last_insert_id(), @@identity; |
|
92 |
explain extended select @@IDENTITY,last_insert_id(), @@identity; |
|
93 |
||
94 |
set global timed_mutexes=ON; |
|
95 |
show variables like 'timed_mutexes'; |
|
96 |
select * from information_schema.session_variables where variable_name like 'timed_mutexes'; |
|
97 |
set global timed_mutexes=0; |
|
98 |
show variables like 'timed_mutexes'; |
|
99 |
select * from information_schema.session_variables where variable_name like 'timed_mutexes'; |
|
100 |
||
101 |
set storage_engine=MYISAM, storage_engine="HEAP"; |
|
102 |
show local variables like 'storage_engine'; |
|
103 |
select * from information_schema.session_variables where variable_name like 'storage_engine'; |
|
104 |
show global variables like 'storage_engine'; |
|
105 |
select * from information_schema.global_variables where variable_name like 'storage_engine'; |
|
106 |
||
107 |
set GLOBAL myisam_max_sort_file_size=2000000; |
|
108 |
show global variables like 'myisam_max_sort_file_size'; |
|
109 |
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size'; |
|
110 |
set GLOBAL myisam_max_sort_file_size=default; |
|
111 |
--replace_result 9223372036853727232 FILE_SIZE 2146435072 FILE_SIZE |
|
112 |
show global variables like 'myisam_max_sort_file_size'; |
|
113 |
--replace_result 9223372036853727232 FILE_SIZE 2146435072 FILE_SIZE |
|
114 |
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size'; |
|
115 |
||
971.7.3
by Eric Day
Added net_buffer_length tests back in as oldlibdrizzle_buffer_length tests. |
116 |
set global oldlibdrizzle_buffer_length=1024; |
117 |
show global variables like 'oldlibdrizzle_buffer_%'; |
|
118 |
select * from information_schema.global_variables where variable_name like 'oldlibdrizzle_buffer_%' order by 1; |
|
119 |
show global variables like 'oldlibdrizzle_buffer_%'; |
|
120 |
select * from information_schema.global_variables where variable_name like 'oldlibdrizzle_buffer_%' order by 1; |
|
121 |
set global oldlibdrizzle_buffer_length=1; |
|
122 |
show variables like 'oldlibdrizzle_buffer_length'; |
|
123 |
#warning 1292
|
|
124 |
set global oldlibdrizzle_buffer_length=2000000000; |
|
125 |
show variables like 'oldlibdrizzle_buffer_length'; |
|
126 |
||
1
by brian
clean slate |
127 |
show variables like '%alloc%'; |
128 |
select * from information_schema.session_variables where variable_name like '%alloc%' order by 1; |
|
129 |
set @@range_alloc_block_size=1024*16; |
|
130 |
set @@query_alloc_block_size=1024*17+2; |
|
131 |
set @@query_prealloc_size=1024*18; |
|
132 |
set @@transaction_alloc_block_size=1024*20-1; |
|
133 |
set @@transaction_prealloc_size=1024*21-1; |
|
134 |
select @@query_alloc_block_size; |
|
135 |
show variables like '%alloc%'; |
|
136 |
select * from information_schema.session_variables where variable_name like '%alloc%' order by 1; |
|
137 |
set @@range_alloc_block_size=default; |
|
138 |
set @@query_alloc_block_size=default, @@query_prealloc_size=default; |
|
139 |
set transaction_alloc_block_size=default, @@transaction_prealloc_size=default; |
|
140 |
show variables like '%alloc%'; |
|
141 |
select * from information_schema.session_variables where variable_name like '%alloc%' order by 1; |
|
142 |
||
143 |
#
|
|
144 |
# Bug #10904 Illegal mix of collations between
|
|
145 |
# a system variable and a constant
|
|
146 |
#
|
|
147 |
SELECT @@version LIKE 'non-existent'; |
|
148 |
SELECT @@version_compile_os LIKE 'non-existent'; |
|
149 |
||
150 |
# The following should give errors
|
|
151 |
||
152 |
--error 1193 |
|
153 |
set unknown_variable=1; |
|
154 |
--error 1232 |
|
155 |
set max_join_size="hello"; |
|
156 |
--error 1286 |
|
157 |
set storage_engine=UNKNOWN_TABLE_TYPE; |
|
158 |
--error 1230 |
|
159 |
set GLOBAL storage_engine=DEFAULT; |
|
160 |
--error 1228 |
|
161 |
set global autocommit=1; |
|
162 |
--error 1238 |
|
163 |
select @@global.timestamp; |
|
164 |
--error 1238 |
|
165 |
set @@version=''; |
|
166 |
--error 1229 |
|
167 |
set myisam_max_sort_file_size=100; |
|
168 |
--error 1231 |
|
169 |
set @@SQL_WARNINGS=NULL; |
|
170 |
||
171 |
# Test setting all variables
|
|
172 |
||
173 |
set autocommit=1; |
|
620
by Brian Aker
Remove dead rand structures |
174 |
select @@autocommit; |
1
by brian
clean slate |
175 |
set bulk_insert_buffer_size=100; |
176 |
set join_buffer_size=100; |
|
177 |
set last_insert_id=1; |
|
178 |
set max_allowed_packet=100; |
|
179 |
set global max_connect_errors=100; |
|
180 |
set max_heap_table_size=100; |
|
181 |
set max_join_size=100; |
|
182 |
set max_sort_length=100; |
|
183 |
set global max_write_lock_count=100; |
|
789
by Brian Aker
MyISAM fix. |
184 |
set global myisam_sort_buffer_size=100; |
971.7.3
by Eric Day
Added net_buffer_length tests back in as oldlibdrizzle_buffer_length tests. |
185 |
set global oldlibdrizzle_buffer_length=100; |
1
by brian
clean slate |
186 |
set read_buffer_size=100; |
187 |
set read_rnd_buffer_size=100; |
|
188 |
set global server_id=100; |
|
189 |
set sort_buffer_size=100; |
|
190 |
set sql_big_selects=1; |
|
191 |
set sql_buffer_result=1; |
|
192 |
set sql_safe_updates=1; |
|
193 |
set sql_select_limit=1; |
|
194 |
# reset it, so later tests don't get confused
|
|
195 |
set sql_select_limit=default; |
|
196 |
set sql_warnings=1; |
|
197 |
set global table_open_cache=100; |
|
198 |
set storage_engine=myisam; |
|
199 |
set timestamp=1, timestamp=default; |
|
200 |
set tmp_table_size=100; |
|
201 |
set tx_isolation="READ-COMMITTED"; |
|
202 |
||
203 |
#
|
|
204 |
# key buffer
|
|
205 |
#
|
|
206 |
||
1063.9.46
by Stewart Smith
variables.test for MyISAM as temp only. |
207 |
create temporary table t1 (a int not null auto_increment, primary key(a)); |
208 |
create temporary table t2 (a int not null auto_increment, primary key(a)); |
|
1
by brian
clean slate |
209 |
insert into t1 values(null),(null),(null); |
210 |
insert into t2 values(null),(null),(null); |
|
211 |
set global key_buffer_size=100000; |
|
212 |
select @@key_buffer_size; |
|
213 |
select * from t1 where a=2; |
|
214 |
select * from t2 where a=3; |
|
215 |
check table t1,t2; |
|
216 |
select max(a) +1, max(a) +2 into @xx,@yy from t1; |
|
217 |
drop table t1,t2; |
|
218 |
||
219 |
#
|
|
220 |
# error conditions
|
|
221 |
#
|
|
222 |
||
223 |
--error 1193 |
|
224 |
select @@xxxxxxxxxx; |
|
225 |
select 1; |
|
226 |
||
227 |
--error 1238 |
|
228 |
select @@session.key_buffer_size; |
|
229 |
||
971.3.12
by Eric Day
Started abstracting Protocol, removed init_connect, init_file. |
230 |
# init_connect was removed
|
231 |
#--error 1229
|
|
232 |
#set init_connect = NULL;
|
|
233 |
#set global init_connect = NULL;
|
|
1
by brian
clean slate |
234 |
|
235 |
# Bug#3754 SET GLOBAL myisam_max_sort_file_size doesn't work as
|
|
413.2.2
by Brian Aker
Removed UNSIGNED from parser. |
236 |
# expected: check that there is no overflow when 64-bit
|
1
by brian
clean slate |
237 |
# variables are set
|
238 |
||
239 |
set global myisam_max_sort_file_size=4294967296; |
|
240 |
--replace_result 4294967296 MAX_FILE_SIZE 2146435072 MAX_FILE_SIZE |
|
241 |
show global variables like 'myisam_max_sort_file_size'; |
|
242 |
--replace_result 4294967296 MAX_FILE_SIZE 2146435072 MAX_FILE_SIZE |
|
243 |
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size'; |
|
244 |
set global myisam_max_sort_file_size=default; |
|
245 |
||
750
by Brian Aker
Bug #311084 |
246 |
## Bug #311084
|
247 |
## swap
|
|
248 |
##
|
|
249 |
#select @@global.myisam_max_sort_file_size,@@local.max_join_size;
|
|
250 |
#set @svc=@@global.myisam_max_sort_file_size, @svj=@@local.max_join_size;
|
|
251 |
#select @@global.myisam_max_sort_file_size,@@local.max_join_size;
|
|
252 |
#set @@global.myisam_max_sort_file_size=111,@@local.max_join_size=222;
|
|
253 |
#select @@global.myisam_max_sort_file_size,@@local.max_join_size;
|
|
254 |
#set @@global.myisam_max_sort_file_size=@@local.max_join_size,@@local.max_join_size=@@global.myisam_max_sort_file_size;
|
|
255 |
#select @@global.myisam_max_sort_file_size,@@local.max_join_size;
|
|
256 |
#set @@global.myisam_max_sort_file_size=@svc, @@local.max_join_size=@svj;
|
|
257 |
#select @@global.myisam_max_sort_file_size,@@local.max_join_size;
|
|
258 |
#set @a=1, @b=2;
|
|
259 |
#set @a=@b, @b=@a;
|
|
260 |
#select @a, @b;
|
|
1
by brian
clean slate |
261 |
|
262 |
#
|
|
263 |
# Bug#2586:Disallow global/session/local as structured var. instance names
|
|
264 |
#
|
|
1106.4.2
by Brian Aker
Remove multi key cache |
265 |
--error 1193 |
1
by brian
clean slate |
266 |
set @@global.global.key_buffer_size= 1; |
1106.4.2
by Brian Aker
Remove multi key cache |
267 |
--error 1193 |
1
by brian
clean slate |
268 |
set GLOBAL global.key_buffer_size= 1; |
269 |
--error 1064 |
|
270 |
SELECT @@global.global.key_buffer_size; |
|
271 |
--error 1064 |
|
272 |
SELECT @@global.session.key_buffer_size; |
|
273 |
--error 1064 |
|
274 |
SELECT @@global.local.key_buffer_size; |
|
275 |
||
276 |
#
|
|
277 |
# BUG#4788 show create table provides incorrect statement
|
|
278 |
#
|
|
279 |
# What default width have numeric types?
|
|
1063.9.46
by Stewart Smith
variables.test for MyISAM as temp only. |
280 |
create temporary table t1 ( |
396
by Brian Aker
Cleanup tiny and small int. |
281 |
c1 int, |
282 |
c2 int, |
|
620
by Brian Aker
Remove dead rand structures |
283 |
c3 int, |
1
by brian
clean slate |
284 |
c4 int, |
285 |
c5 bigint); |
|
286 |
show create table t1; |
|
287 |
drop table t1; |
|
288 |
#
|
|
289 |
# What types and widths have variables?
|
|
290 |
set @arg00= 8, @arg01= 8.8, @arg02= 'a string', @arg03= 0.2e0; |
|
1063.9.46
by Stewart Smith
variables.test for MyISAM as temp only. |
291 |
create temporary table t1 as select @arg00 as c1, @arg01 as c2, @arg02 as c3, @arg03 as c4; |
1
by brian
clean slate |
292 |
show create table t1; |
293 |
drop table t1; |
|
294 |
||
295 |
#
|
|
296 |
# Bug #6958: negative arguments to integer options wrap around
|
|
297 |
#
|
|
298 |
||
299 |
SET GLOBAL table_open_cache=-1; |
|
300 |
SHOW VARIABLES LIKE 'table_open_cache'; |
|
971.2.1
by Eric Day
Fix for bug #311025. This was due to code that was removed during ulong cleanup (r576). |
301 |
SELECT * FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE 'table_open_cache'; |
1
by brian
clean slate |
302 |
SET GLOBAL table_open_cache=DEFAULT; |
303 |
||
304 |
#
|
|
305 |
# Tests for lc_time_names
|
|
306 |
# Note, when adding new locales, please fix ID accordingly:
|
|
307 |
# - to test the last ID (currently 108)
|
|
308 |
# - and the next after the last (currently 109)
|
|
309 |
#
|
|
310 |
--echo *** Various tests with LC_TIME_NAMES |
|
311 |
--echo *** LC_TIME_NAMES: testing case insensitivity |
|
312 |
set @@lc_time_names='ru_ru'; |
|
313 |
select @@lc_time_names; |
|
314 |
--echo *** LC_TIME_NAMES: testing with a user variable |
|
315 |
set @lc='JA_JP'; |
|
316 |
set @@lc_time_names=@lc; |
|
317 |
select @@lc_time_names; |
|
318 |
--echo *** LC_TIME_NAMES: testing with string expressions |
|
319 |
set lc_time_names=concat('de','_','DE'); |
|
320 |
select @@lc_time_names; |
|
321 |
--error 1105 |
|
322 |
set lc_time_names=concat('de','+','DE'); |
|
323 |
select @@lc_time_names; |
|
324 |
--echo LC_TIME_NAMES: testing with numeric expressions |
|
325 |
set @@lc_time_names=1+2; |
|
326 |
select @@lc_time_names; |
|
327 |
--error 1232 |
|
328 |
set @@lc_time_names=1/0; |
|
329 |
select @@lc_time_names; |
|
330 |
set lc_time_names=en_US; |
|
331 |
--echo LC_TIME_NAMES: testing NULL and a negative number: |
|
332 |
--error 1231 |
|
333 |
set lc_time_names=NULL; |
|
334 |
--error 1105 |
|
335 |
set lc_time_names=-1; |
|
336 |
select @@lc_time_names; |
|
337 |
--echo LC_TIME_NAMES: testing locale with the last ID: |
|
338 |
set lc_time_names=108; |
|
339 |
select @@lc_time_names; |
|
340 |
--echo LC_TIME_NAMES: testing a number beyond the valid ID range: |
|
341 |
--error 1105 |
|
342 |
set lc_time_names=109; |
|
343 |
select @@lc_time_names; |
|
344 |
--echo LC_TIME_NAMES: testing that 0 is en_US: |
|
345 |
set lc_time_names=0; |
|
346 |
select @@lc_time_names; |
|
347 |
||
348 |
#
|
|
349 |
# Bug #22648 LC_TIME_NAMES: Setting GLOBAL has no effect
|
|
350 |
#
|
|
351 |
select @@global.lc_time_names, @@lc_time_names; |
|
352 |
set @@global.lc_time_names=fr_FR; |
|
353 |
select @@global.lc_time_names, @@lc_time_names; |
|
354 |
--echo New connection |
|
355 |
connect (con1,localhost,root,,); |
|
356 |
connection con1; |
|
357 |
select @@global.lc_time_names, @@lc_time_names; |
|
358 |
set @@lc_time_names=ru_RU; |
|
359 |
select @@global.lc_time_names, @@lc_time_names; |
|
360 |
disconnect con1; |
|
361 |
connection default; |
|
362 |
--echo Returnung to default connection |
|
363 |
select @@global.lc_time_names, @@lc_time_names; |
|
364 |
set lc_time_names=default; |
|
365 |
select @@global.lc_time_names, @@lc_time_names; |
|
366 |
set @@global.lc_time_names=default; |
|
367 |
select @@global.lc_time_names, @@lc_time_names; |
|
368 |
set @@lc_time_names=default; |
|
369 |
select @@global.lc_time_names, @@lc_time_names; |
|
370 |
||
371 |
||
372 |
#
|
|
373 |
# Bug #13334: query_prealloc_size default less than minimum
|
|
374 |
#
|
|
375 |
set @test = @@query_prealloc_size; |
|
376 |
set @@query_prealloc_size = @test; |
|
377 |
select @@query_prealloc_size = @test; |
|
378 |
||
379 |
--echo End of 4.1 tests |
|
380 |
||
381 |
#
|
|
382 |
# Bug#6282 Packet error with SELECT INTO
|
|
383 |
#
|
|
384 |
||
1063.9.46
by Stewart Smith
variables.test for MyISAM as temp only. |
385 |
create temporary table t1 (a int); |
1
by brian
clean slate |
386 |
select a into @x from t1; |
387 |
show warnings; |
|
388 |
drop table t1; |
|
389 |
||
390 |
#
|
|
391 |
# Bug #10339: read only variables.
|
|
392 |
#
|
|
393 |
||
394 |
--error 1238 |
|
395 |
set @@warning_count=1; |
|
396 |
--error 1238 |
|
397 |
set @@global.error_count=1; |
|
398 |
||
399 |
#
|
|
400 |
# Bug #10351: Setting ulong variable to > MAX_ULONG fails on 32-bit platform
|
|
401 |
#
|
|
1194
by Brian Aker
Removed test for ARCH (it only looked at Intel style systems). Left in SELECT for it. |
402 |
--disable_query_log |
403 |
select VARIABLE_VALUE from information_schema.GLOBAL_VARIABLES where VARIABLE_NAME like "VERSION_COMPILE_MACHINE" into @arch; |
|
404 |
--enable_query_log |
|
1197
by Brian Aker
Remove test for 32bit max on heap tables. |
405 |
# We technically do not care about 32bit hardware. -Brian
|
406 |
#set @@max_heap_table_size= 4294967296;
|
|
407 |
#select @@max_heap_table_size > 0;
|
|
408 |
#set global max_heap_table_size= 4294967296;
|
|
409 |
#select @@max_heap_table_size > 0;
|
|
410 |
#set @@max_heap_table_size= 4294967296;
|
|
411 |
#select @@max_heap_table_size > 0;
|
|
1124.2.12
by Diego Medina
finally fixed the 64-bit vs 32-bit test case |
412 |
--enable_warnings |
1
by brian
clean slate |
413 |
#
|
414 |
# Bug #11775 Variable character_set_system does not exist (sometimes)
|
|
415 |
#
|
|
642.1.51
by Lee
enable user_var, user_var-binlog and symlink tests |
416 |
--error 1193 |
1
by brian
clean slate |
417 |
select @@character_set_system; |
642.1.51
by Lee
enable user_var, user_var-binlog and symlink tests |
418 |
--error 1193 |
419 |
set global character_set_system = utf8; |
|
1
by brian
clean slate |
420 |
--error 1238 |
421 |
set @@global.version_compile_os='234'; |
|
422 |
||
423 |
#
|
|
642.1.51
by Lee
enable user_var, user_var-binlog and symlink tests |
424 |
# Check character_set_filesystem variable invalid for Drizzle
|
1
by brian
clean slate |
425 |
#
|
642.1.51
by Lee
enable user_var, user_var-binlog and symlink tests |
426 |
--error 1193 |
427 |
set @@global.character_set_filesystem=utf8; |
|
428 |
--error 1193 |
|
429 |
set character_set_filesystem=utf8; |
|
1
by brian
clean slate |
430 |
|
431 |
#
|
|
432 |
# Bug #17849: Show sql_big_selects in SHOW VARIABLES
|
|
433 |
#
|
|
434 |
set @old_sql_big_selects = @@sql_big_selects; |
|
435 |
set @@sql_big_selects = 1; |
|
436 |
show variables like 'sql_big_selects'; |
|
642.1.53
by Lee
enable subselect_not, subselect_no_mat and variables tests, some other misc clean up on other tests |
437 |
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
|
642.1.51
by Lee
enable user_var, user_var-binlog and symlink tests |
438 |
#select * from information_schema.session_variables where variable_name like 'sql_big_selects';
|
1
by brian
clean slate |
439 |
set @@sql_big_selects = @old_sql_big_selects; |
440 |
||
441 |
#
|
|
442 |
# Bug #16195: SHOW VARIABLES doesn't report correctly sql_warnings and
|
|
443 |
# sql_notes values
|
|
444 |
#
|
|
445 |
set @@sql_notes = 0, @@sql_warnings = 0; |
|
446 |
show variables like 'sql_notes'; |
|
642.1.53
by Lee
enable subselect_not, subselect_no_mat and variables tests, some other misc clean up on other tests |
447 |
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
|
642.1.51
by Lee
enable user_var, user_var-binlog and symlink tests |
448 |
#select * from information_schema.session_variables where variable_name like 'sql_notes';
|
1
by brian
clean slate |
449 |
show variables like 'sql_warnings'; |
642.1.53
by Lee
enable subselect_not, subselect_no_mat and variables tests, some other misc clean up on other tests |
450 |
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
|
642.1.51
by Lee
enable user_var, user_var-binlog and symlink tests |
451 |
#select * from information_schema.session_variables where variable_name like 'sql_warnings';
|
1
by brian
clean slate |
452 |
set @@sql_notes = 1, @@sql_warnings = 1; |
453 |
show variables like 'sql_notes'; |
|
642.1.53
by Lee
enable subselect_not, subselect_no_mat and variables tests, some other misc clean up on other tests |
454 |
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
|
642.1.51
by Lee
enable user_var, user_var-binlog and symlink tests |
455 |
#select * from information_schema.session_variables where variable_name like 'sql_notes';
|
1
by brian
clean slate |
456 |
show variables like 'sql_warnings'; |
642.1.53
by Lee
enable subselect_not, subselect_no_mat and variables tests, some other misc clean up on other tests |
457 |
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
|
642.1.51
by Lee
enable user_var, user_var-binlog and symlink tests |
458 |
#select * from information_schema.session_variables where variable_name like 'sql_warnings';
|
1
by brian
clean slate |
459 |
|
460 |
#
|
|
461 |
# Bug #15684: system variables cannot be SELECTed (e.g. @@version_comment)
|
|
462 |
#
|
|
463 |
# Don't actually output, since it depends on the system
|
|
464 |
--replace_column 1 # 2 # 3 # 4 # |
|
465 |
select @@version, @@version_comment, @@version_compile_machine, |
|
466 |
@@version_compile_os; |
|
467 |
||
468 |
#
|
|
469 |
# Bug #1039: make tmpdir and datadir available as @@variables (also included
|
|
470 |
# basedir)
|
|
471 |
#
|
|
472 |
# Don't actually output, since it depends on the system
|
|
473 |
--replace_column 1 # 2 # 3 # |
|
474 |
select @@basedir, @@datadir, @@tmpdir; |
|
475 |
--replace_column 2 # |
|
476 |
show variables like 'basedir'; |
|
477 |
--replace_column 2 # |
|
642.1.53
by Lee
enable subselect_not, subselect_no_mat and variables tests, some other misc clean up on other tests |
478 |
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
|
642.1.51
by Lee
enable user_var, user_var-binlog and symlink tests |
479 |
#select * from information_schema.session_variables where variable_name like 'basedir';
|
1
by brian
clean slate |
480 |
--replace_column 2 # |
481 |
show variables like 'datadir'; |
|
482 |
--replace_column 2 # |
|
642.1.53
by Lee
enable subselect_not, subselect_no_mat and variables tests, some other misc clean up on other tests |
483 |
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
|
642.1.51
by Lee
enable user_var, user_var-binlog and symlink tests |
484 |
#select * from information_schema.session_variables where variable_name like 'datadir';
|
1
by brian
clean slate |
485 |
--replace_column 2 # |
486 |
show variables like 'tmpdir'; |
|
487 |
--replace_column 2 # |
|
642.1.53
by Lee
enable subselect_not, subselect_no_mat and variables tests, some other misc clean up on other tests |
488 |
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
|
642.1.51
by Lee
enable user_var, user_var-binlog and symlink tests |
489 |
#select * from information_schema.session_variables where variable_name like 'tmpdir';
|
1
by brian
clean slate |
490 |
|
491 |
#
|
|
492 |
# Bug #19606: make ssl settings available via SHOW VARIABLES and @@variables
|
|
493 |
#
|
|
494 |
# Don't actually output, since it depends on the system
|
|
642.1.53
by Lee
enable subselect_not, subselect_no_mat and variables tests, some other misc clean up on other tests |
495 |
#--replace_column 1 # 2 # 3 # 4 # 5 #
|
496 |
# Not supported in Drizzle
|
|
642.1.51
by Lee
enable user_var, user_var-binlog and symlink tests |
497 |
#select @@ssl_ca, @@ssl_capath, @@ssl_cert, @@ssl_cipher, @@ssl_key;
|
642.1.53
by Lee
enable subselect_not, subselect_no_mat and variables tests, some other misc clean up on other tests |
498 |
#--replace_column 2 #
|
499 |
#show variables like 'ssl%';
|
|
500 |
#--replace_column 2 #
|
|
501 |
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
|
|
642.1.51
by Lee
enable user_var, user_var-binlog and symlink tests |
502 |
#select * from information_schema.session_variables where variable_name like 'ssl%' order by 1;
|
1
by brian
clean slate |
503 |
|
504 |
#
|
|
505 |
# Bug #19616: make log_queries_not_using_indexes available in SHOW VARIABLES
|
|
506 |
# and as @@log_queries_not_using_indexes
|
|
507 |
#
|
|
642.1.53
by Lee
enable subselect_not, subselect_no_mat and variables tests, some other misc clean up on other tests |
508 |
# Not valid in Drizzle
|
642.1.51
by Lee
enable user_var, user_var-binlog and symlink tests |
509 |
#select @@log_queries_not_using_indexes;
|
510 |
#show variables like 'log_queries_not_using_indexes';
|
|
642.1.53
by Lee
enable subselect_not, subselect_no_mat and variables tests, some other misc clean up on other tests |
511 |
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
|
642.1.51
by Lee
enable user_var, user_var-binlog and symlink tests |
512 |
#select * from information_schema.session_variables where variable_name like 'log_queries_not_using_indexes';
|
1
by brian
clean slate |
513 |
|
514 |
#
|
|
515 |
# Bug#20908: Crash if select @@""
|
|
516 |
#
|
|
517 |
--error ER_PARSE_ERROR |
|
518 |
select @@""; |
|
519 |
--error ER_PARSE_ERROR |
|
520 |
select @@&; |
|
521 |
--error ER_PARSE_ERROR |
|
522 |
select @@@; |
|
523 |
||
524 |
#
|
|
525 |
# Bug#20166 mysql-test-run.pl does not test system privilege tables creation
|
|
526 |
#
|
|
527 |
# Don't actually output, since it depends on the system
|
|
528 |
--replace_column 1 # |
|
529 |
select @@hostname; |
|
530 |
--error 1238 |
|
531 |
set @@hostname= "anothername"; |
|
532 |
--replace_column 2 # |
|
533 |
show variables like 'hostname'; |
|
534 |
||
535 |
--echo End of 5.0 tests |
|
536 |
||
537 |
# This is at the very after the versioned tests, since it involves doing
|
|
538 |
# cleanup
|
|
539 |
#
|
|
540 |
# Bug #19263: variables.test doesn't clean up after itself (II/II --
|
|
541 |
# restore)
|
|
542 |
#
|
|
642.1.51
by Lee
enable user_var, user_var-binlog and symlink tests |
543 |
--error 1193 |
1
by brian
clean slate |
544 |
set global flush_time =@my_flush_time; |
545 |
set global key_buffer_size =@my_key_buffer_size; |
|
546 |
set global max_connect_errors =@my_max_connect_errors; |
|
547 |
set global max_heap_table_size =@my_max_heap_table_size; |
|
548 |
set global max_join_size =@my_max_join_size; |
|
549 |
# No default
|
|
550 |
set global max_write_lock_count =default; |
|
790
by Brian Aker
More myisam plugin conversion. |
551 |
--error 1232 |
1
by brian
clean slate |
552 |
set global myisam_data_pointer_size =@my_myisam_data_pointer_size; |
971.7.3
by Eric Day
Added net_buffer_length tests back in as oldlibdrizzle_buffer_length tests. |
553 |
set global oldlibdrizzle_buffer_length= @my_oldlibdrizzle_buffer_length; |
1
by brian
clean slate |
554 |
set global server_id =@my_server_id; |
555 |
set global storage_engine =@my_storage_engine; |
|
642.1.51
by Lee
enable user_var, user_var-binlog and symlink tests |
556 |
--error 1193 |
1
by brian
clean slate |
557 |
set global thread_cache_size =@my_thread_cache_size; |
1119.4.7
by Stewart Smith
make variables test not leave state of server in a modified state. i.e. fully |
558 |
set global myisam_sort_buffer_size =@my_myisam_sort_buffer_size; |
1
by brian
clean slate |
559 |
|
560 |
#
|
|
561 |
# Bug#28580 Repeatation of status variables
|
|
562 |
#
|
|
563 |
--replace_column 2 # |
|
1055.1.2
by Padraig O'Sullivan
Updated test case based on bug fix. |
564 |
show global variables where variable_name='table_definition_cache' or Variable_name='table_lock_wait_timeout'; |