~drizzle-trunk/drizzle/development

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;
15
set @my_net_buffer_length         =@@global.net_buffer_length;
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.3.60 by Eric Day
Moved connect_timeout, net_*_timeout, and retry_count to plugin.
116
set global net_buffer_length=1024;
117
set session net_buffer_length=2048;
1 by brian
clean slate
118
show global variables like 'net_%';
119
select * from information_schema.global_variables where variable_name like 'net_%' order by 1;
120
show session variables like 'net_%';
121
select * from information_schema.session_variables where variable_name like 'net_%' order by 1;
971.3.60 by Eric Day
Moved connect_timeout, net_*_timeout, and retry_count to plugin.
122
set session net_buffer_length=8000;
1 by brian
clean slate
123
show global variables like 'net_%';
124
select * from information_schema.global_variables where variable_name like 'net_%' order by 1;
125
show session variables like 'net_%';
126
select * from information_schema.session_variables where variable_name like 'net_%' order by 1;
127
set net_buffer_length=1;
128
show variables like 'net_buffer_length';
129
select * from information_schema.session_variables where variable_name like 'net_buffer_length';
130
#warning 1292
131
set net_buffer_length=2000000000;
132
show variables like 'net_buffer_length';
133
select * from information_schema.session_variables where variable_name like 'net_buffer_length';
134
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=1024*16;
138
set @@query_alloc_block_size=1024*17+2;
139
set @@query_prealloc_size=1024*18;
140
set @@transaction_alloc_block_size=1024*20-1;
141
set @@transaction_prealloc_size=1024*21-1;
142
select @@query_alloc_block_size;
143
show variables like '%alloc%';
144
select * from information_schema.session_variables where variable_name like '%alloc%' order by 1;
145
set @@range_alloc_block_size=default;
146
set @@query_alloc_block_size=default, @@query_prealloc_size=default;
147
set transaction_alloc_block_size=default, @@transaction_prealloc_size=default;
148
show variables like '%alloc%';
149
select * from information_schema.session_variables where variable_name like '%alloc%' order by 1;
150
151
#
152
# Bug #10904 Illegal mix of collations between
153
# a system variable and a constant
154
#
155
SELECT @@version LIKE 'non-existent';
156
SELECT @@version_compile_os LIKE 'non-existent';
157
158
# The following should give errors
159
160
--error 1193
161
set unknown_variable=1;
162
--error 1232
163
set max_join_size="hello";
164
--error 1286
165
set storage_engine=UNKNOWN_TABLE_TYPE;
166
--error 1230
167
set GLOBAL storage_engine=DEFAULT;
168
--error 1228
169
set global autocommit=1;
170
--error 1238
171
select @@global.timestamp;
172
--error 1238 
173
set @@version='';
174
--error 1229
175
set myisam_max_sort_file_size=100;
176
--error 1231
177
set @@SQL_WARNINGS=NULL;
178
179
# Test setting all variables
180
181
set autocommit=1;
620 by Brian Aker
Remove dead rand structures
182
select @@autocommit;
1 by brian
clean slate
183
set bulk_insert_buffer_size=100;
184
set join_buffer_size=100;
185
set last_insert_id=1;
186
set max_allowed_packet=100;
187
set global max_connect_errors=100;
188
set max_heap_table_size=100;
189
set max_join_size=100;
190
set max_sort_length=100;
191
set global max_write_lock_count=100;
789 by Brian Aker
MyISAM fix.
192
set global myisam_sort_buffer_size=100;
1 by brian
clean slate
193
set net_buffer_length=100;
194
set read_buffer_size=100;
195
set read_rnd_buffer_size=100;
196
set global server_id=100;
197
set sort_buffer_size=100;
198
set sql_big_selects=1;
199
set sql_buffer_result=1;
200
set sql_safe_updates=1;
201
set sql_select_limit=1;
202
# reset it, so later tests don't get confused
203
set sql_select_limit=default;
204
set sql_warnings=1;
205
set global table_open_cache=100;
206
set storage_engine=myisam;
207
set timestamp=1, timestamp=default;
208
set tmp_table_size=100;
209
set tx_isolation="READ-COMMITTED";
210
211
#
212
# key buffer
213
#
214
1063.9.46 by Stewart Smith
variables.test for MyISAM as temp only.
215
create temporary table t1 (a int not null auto_increment, primary key(a));
216
create temporary table t2 (a int not null auto_increment, primary key(a));
1 by brian
clean slate
217
insert into t1 values(null),(null),(null);
218
insert into t2 values(null),(null),(null);
219
set global key_buffer_size=100000;
220
select @@key_buffer_size;
221
select * from t1 where a=2;
222
select * from t2 where a=3;
223
check table t1,t2;
224
select max(a) +1, max(a) +2 into @xx,@yy from t1;
225
drop table t1,t2;
226
227
#
228
# error conditions
229
#
230
231
--error 1193
232
select @@xxxxxxxxxx;
233
select 1;
234
235
--error 1238
236
select @@session.key_buffer_size;
237
971.3.12 by Eric Day
Started abstracting Protocol, removed init_connect, init_file.
238
# init_connect was removed
239
#--error 1229
240
#set init_connect = NULL;
241
#set global init_connect = NULL;
1 by brian
clean slate
242
243
# Bug#3754 SET GLOBAL myisam_max_sort_file_size doesn't work as
413.2.2 by Brian Aker
Removed UNSIGNED from parser.
244
# expected: check that there is no overflow when 64-bit
1 by brian
clean slate
245
# variables are set
246
247
set global myisam_max_sort_file_size=4294967296;
248
--replace_result 4294967296 MAX_FILE_SIZE 2146435072 MAX_FILE_SIZE
249
show global variables like 'myisam_max_sort_file_size';
250
--replace_result 4294967296 MAX_FILE_SIZE 2146435072 MAX_FILE_SIZE
251
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
252
set global myisam_max_sort_file_size=default;
253
750 by Brian Aker
Bug #311084
254
## Bug #311084
255
## swap
256
##
257
#select @@global.myisam_max_sort_file_size,@@local.max_join_size;
258
#set @svc=@@global.myisam_max_sort_file_size, @svj=@@local.max_join_size;
259
#select @@global.myisam_max_sort_file_size,@@local.max_join_size;
260
#set @@global.myisam_max_sort_file_size=111,@@local.max_join_size=222;
261
#select @@global.myisam_max_sort_file_size,@@local.max_join_size;
262
#set @@global.myisam_max_sort_file_size=@@local.max_join_size,@@local.max_join_size=@@global.myisam_max_sort_file_size;
263
#select @@global.myisam_max_sort_file_size,@@local.max_join_size;
264
#set @@global.myisam_max_sort_file_size=@svc, @@local.max_join_size=@svj;
265
#select @@global.myisam_max_sort_file_size,@@local.max_join_size;
266
#set @a=1, @b=2;
267
#set @a=@b, @b=@a;
268
#select @a, @b;
1 by brian
clean slate
269
270
#
271
# Bug#2586:Disallow global/session/local as structured var. instance names
272
#
1106.4.2 by Brian Aker
Remove multi key cache
273
--error 1193
1 by brian
clean slate
274
set @@global.global.key_buffer_size= 1;
1106.4.2 by Brian Aker
Remove multi key cache
275
--error 1193
1 by brian
clean slate
276
set GLOBAL global.key_buffer_size= 1;
277
--error 1064
278
SELECT @@global.global.key_buffer_size;
279
--error 1064
280
SELECT @@global.session.key_buffer_size;
281
--error 1064
282
SELECT @@global.local.key_buffer_size;
283
284
#
285
# BUG#4788 show create table provides incorrect statement
286
#
287
# What default width have numeric types?
1063.9.46 by Stewart Smith
variables.test for MyISAM as temp only.
288
create temporary table t1 (
396 by Brian Aker
Cleanup tiny and small int.
289
  c1 int,
290
  c2 int,
620 by Brian Aker
Remove dead rand structures
291
  c3 int,
1 by brian
clean slate
292
  c4 int,
293
  c5 bigint);
294
show create table t1;
295
drop table t1;
296
#
297
# What types and widths have variables?
298
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.
299
create temporary table t1 as select @arg00 as c1, @arg01 as c2, @arg02 as c3, @arg03 as c4;
1 by brian
clean slate
300
show create table t1;
301
drop table t1;
302
303
#
304
# Bug #6958: negative arguments to integer options wrap around
305
#
306
307
SET GLOBAL table_open_cache=-1;
308
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).
309
SELECT * FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE 'table_open_cache';
1 by brian
clean slate
310
SET GLOBAL table_open_cache=DEFAULT;
311
312
#
313
# Tests for lc_time_names
314
# Note, when adding new locales, please fix ID accordingly:
315
# - to test the last ID (currently 108)
316
# - and the next after the last (currently 109)
317
#
318
--echo *** Various tests with LC_TIME_NAMES
319
--echo *** LC_TIME_NAMES: testing case insensitivity
320
set @@lc_time_names='ru_ru';
321
select @@lc_time_names;
322
--echo *** LC_TIME_NAMES: testing with a user variable
323
set @lc='JA_JP';
324
set @@lc_time_names=@lc;
325
select @@lc_time_names;
326
--echo *** LC_TIME_NAMES: testing with string expressions
327
set lc_time_names=concat('de','_','DE');
328
select @@lc_time_names;
329
--error 1105
330
set lc_time_names=concat('de','+','DE');
331
select @@lc_time_names;
332
--echo LC_TIME_NAMES: testing with numeric expressions
333
set @@lc_time_names=1+2;
334
select @@lc_time_names;
335
--error 1232
336
set @@lc_time_names=1/0;
337
select @@lc_time_names;
338
set lc_time_names=en_US;
339
--echo LC_TIME_NAMES: testing NULL and a negative number:
340
--error 1231
341
set lc_time_names=NULL;
342
--error 1105
343
set lc_time_names=-1;
344
select @@lc_time_names;
345
--echo LC_TIME_NAMES: testing locale with the last ID:
346
set lc_time_names=108;
347
select @@lc_time_names;
348
--echo LC_TIME_NAMES: testing a number beyond the valid ID range:
349
--error 1105
350
set lc_time_names=109;
351
select @@lc_time_names;
352
--echo LC_TIME_NAMES: testing that 0 is en_US:
353
set lc_time_names=0;
354
select @@lc_time_names;
355
356
#
357
# Bug #22648 LC_TIME_NAMES: Setting GLOBAL has no effect
358
#
359
select @@global.lc_time_names, @@lc_time_names;
360
set @@global.lc_time_names=fr_FR;
361
select @@global.lc_time_names, @@lc_time_names;
362
--echo New connection
363
connect (con1,localhost,root,,);
364
connection con1;
365
select @@global.lc_time_names, @@lc_time_names;
366
set @@lc_time_names=ru_RU;
367
select @@global.lc_time_names, @@lc_time_names;
368
disconnect con1;
369
connection default;
370
--echo Returnung to default connection
371
select @@global.lc_time_names, @@lc_time_names;
372
set lc_time_names=default;
373
select @@global.lc_time_names, @@lc_time_names;
374
set @@global.lc_time_names=default;
375
select @@global.lc_time_names, @@lc_time_names;
376
set @@lc_time_names=default;
377
select @@global.lc_time_names, @@lc_time_names;
378
379
380
#
381
# Bug #13334: query_prealloc_size default less than minimum
382
#
383
set @test = @@query_prealloc_size;
384
set @@query_prealloc_size = @test;
385
select @@query_prealloc_size = @test;
386
387
--echo End of 4.1 tests
388
389
#
390
# Bug#6282 Packet error with SELECT INTO
391
# 
392
1063.9.46 by Stewart Smith
variables.test for MyISAM as temp only.
393
create temporary table t1 (a int);
1 by brian
clean slate
394
select a into @x from t1;
395
show warnings;
396
drop table t1;
397
398
#
399
# Bug #10339: read only variables.
400
#
401
402
--error 1238
403
set @@warning_count=1;
404
--error 1238
405
set @@global.error_count=1;
406
407
#
408
# Bug #10351: Setting ulong variable to > MAX_ULONG fails on 32-bit platform
409
#
1124.2.11 by Diego Medina
Enabled a hack to account for 32-bit vs 64-bit tests results
410
--disable_query_log
411
select VARIABLE_VALUE from information_schema.GLOBAL_VARIABLES where VARIABLE_NAME like "VERSION_COMPILE_MACHINE" into @arch;
412
--enable_query_log
1124.2.12 by Diego Medina
finally fixed the 64-bit vs 32-bit test case
413
if(!`select strcmp(@arch,"i386")`)
1124.2.11 by Diego Medina
Enabled a hack to account for 32-bit vs 64-bit tests results
414
{
415
  --disable_warnings
416
}
1 by brian
clean slate
417
set @@max_heap_table_size= 4294967296;
418
select @@max_heap_table_size > 0;
419
set global max_heap_table_size= 4294967296;
420
select @@max_heap_table_size > 0;
421
set @@max_heap_table_size= 4294967296;
422
select @@max_heap_table_size > 0;
1124.2.12 by Diego Medina
finally fixed the 64-bit vs 32-bit test case
423
--enable_warnings
1 by brian
clean slate
424
#
425
# Bug #11775 Variable character_set_system does not exist (sometimes)
426
#
642.1.51 by Lee
enable user_var, user_var-binlog and symlink tests
427
--error 1193
1 by brian
clean slate
428
select @@character_set_system;
642.1.51 by Lee
enable user_var, user_var-binlog and symlink tests
429
--error 1193
430
set global character_set_system = utf8;
1 by brian
clean slate
431
--error 1238
432
set @@global.version_compile_os='234';
433
434
#
642.1.51 by Lee
enable user_var, user_var-binlog and symlink tests
435
# Check character_set_filesystem variable invalid for Drizzle
1 by brian
clean slate
436
#
642.1.51 by Lee
enable user_var, user_var-binlog and symlink tests
437
--error 1193
438
set @@global.character_set_filesystem=utf8;
439
--error 1193
440
set character_set_filesystem=utf8;
1 by brian
clean slate
441
442
#
443
# Bug #17849: Show sql_big_selects in SHOW VARIABLES
444
#
445
set @old_sql_big_selects = @@sql_big_selects;
446
set @@sql_big_selects = 1;
447
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
448
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
642.1.51 by Lee
enable user_var, user_var-binlog and symlink tests
449
#select * from information_schema.session_variables where variable_name like 'sql_big_selects';
1 by brian
clean slate
450
set @@sql_big_selects = @old_sql_big_selects;
451
452
#
453
# Bug #16195: SHOW VARIABLES doesn't report correctly sql_warnings and
454
# sql_notes values
455
# 
456
set @@sql_notes = 0, @@sql_warnings = 0;
457
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
458
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
642.1.51 by Lee
enable user_var, user_var-binlog and symlink tests
459
#select * from information_schema.session_variables where variable_name like 'sql_notes';
1 by brian
clean slate
460
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
461
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
642.1.51 by Lee
enable user_var, user_var-binlog and symlink tests
462
#select * from information_schema.session_variables where variable_name like 'sql_warnings';
1 by brian
clean slate
463
set @@sql_notes = 1, @@sql_warnings = 1;
464
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
465
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
642.1.51 by Lee
enable user_var, user_var-binlog and symlink tests
466
#select * from information_schema.session_variables where variable_name like 'sql_notes';
1 by brian
clean slate
467
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
468
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
642.1.51 by Lee
enable user_var, user_var-binlog and symlink tests
469
#select * from information_schema.session_variables where variable_name like 'sql_warnings';
1 by brian
clean slate
470
471
#
472
# Bug #15684: system variables cannot be SELECTed (e.g. @@version_comment)
473
#
474
# Don't actually output, since it depends on the system
475
--replace_column 1 # 2 # 3 # 4 #
476
select @@version, @@version_comment, @@version_compile_machine,
477
       @@version_compile_os;
478
479
#
480
# Bug #1039: make tmpdir and datadir available as @@variables (also included
481
# basedir)
482
#
483
# Don't actually output, since it depends on the system
484
--replace_column 1 # 2 # 3 #
485
select @@basedir, @@datadir, @@tmpdir;
486
--replace_column 2 #
487
show variables like 'basedir';
488
--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
489
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
642.1.51 by Lee
enable user_var, user_var-binlog and symlink tests
490
#select * from information_schema.session_variables where variable_name like 'basedir';
1 by brian
clean slate
491
--replace_column 2 #
492
show variables like 'datadir';
493
--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
494
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
642.1.51 by Lee
enable user_var, user_var-binlog and symlink tests
495
#select * from information_schema.session_variables where variable_name like 'datadir';
1 by brian
clean slate
496
--replace_column 2 #
497
show variables like 'tmpdir';
498
--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
499
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
642.1.51 by Lee
enable user_var, user_var-binlog and symlink tests
500
#select * from information_schema.session_variables where variable_name like 'tmpdir';
1 by brian
clean slate
501
502
#
503
# Bug #19606: make ssl settings available via SHOW VARIABLES and @@variables
504
# 
505
# 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
506
#--replace_column 1 # 2 # 3 # 4 # 5 #
507
# Not supported in Drizzle
642.1.51 by Lee
enable user_var, user_var-binlog and symlink tests
508
#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
509
#--replace_column 2 #
510
#show variables like 'ssl%';
511
#--replace_column 2 #
512
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
642.1.51 by Lee
enable user_var, user_var-binlog and symlink tests
513
#select * from information_schema.session_variables where variable_name like 'ssl%' order by 1;
1 by brian
clean slate
514
515
#
516
# Bug #19616: make log_queries_not_using_indexes available in SHOW VARIABLES
517
# and as @@log_queries_not_using_indexes
518
#
642.1.53 by Lee
enable subselect_not, subselect_no_mat and variables tests, some other misc clean up on other tests
519
# Not valid in Drizzle
642.1.51 by Lee
enable user_var, user_var-binlog and symlink tests
520
#select @@log_queries_not_using_indexes;
521
#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
522
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
642.1.51 by Lee
enable user_var, user_var-binlog and symlink tests
523
#select * from information_schema.session_variables where variable_name like 'log_queries_not_using_indexes';
1 by brian
clean slate
524
525
#
526
# Bug#20908: Crash if select @@""
527
#
528
--error ER_PARSE_ERROR
529
select @@"";
530
--error ER_PARSE_ERROR
531
select @@&;
532
--error ER_PARSE_ERROR
533
select @@@;
534
535
#
536
# Bug#20166 mysql-test-run.pl does not test system privilege tables creation
537
#
538
# Don't actually output, since it depends on the system
539
--replace_column 1 #
540
select @@hostname;
541
--error 1238
542
set @@hostname= "anothername";
543
--replace_column 2 #
544
show variables like 'hostname';
545
546
--echo End of 5.0 tests
547
548
# This is at the very after the versioned tests, since it involves doing
549
# cleanup
550
#
551
# Bug #19263: variables.test doesn't clean up after itself (II/II --
552
# restore)
553
#
642.1.51 by Lee
enable user_var, user_var-binlog and symlink tests
554
--error 1193
1 by brian
clean slate
555
set global flush_time                =@my_flush_time;
556
set global key_buffer_size           =@my_key_buffer_size;
557
set global max_connect_errors        =@my_max_connect_errors;
558
set global max_heap_table_size       =@my_max_heap_table_size;
559
set global max_join_size             =@my_max_join_size;
560
# No default
561
set global max_write_lock_count      =default;
790 by Brian Aker
More myisam plugin conversion.
562
--error 1232
1 by brian
clean slate
563
set global myisam_data_pointer_size  =@my_myisam_data_pointer_size;
564
set global net_buffer_length         =@my_net_buffer_length;
565
set global server_id                 =@my_server_id;
566
set global storage_engine            =@my_storage_engine;
642.1.51 by Lee
enable user_var, user_var-binlog and symlink tests
567
--error 1193
1 by brian
clean slate
568
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
569
set global myisam_sort_buffer_size   =@my_myisam_sort_buffer_size;
1 by brian
clean slate
570
571
#
572
# Bug#28580 Repeatation of status variables
573
#
574
--replace_column 2 #
1055.1.2 by Padraig O'Sullivan
Updated test case based on bug fix.
575
show global variables where variable_name='table_definition_cache' or Variable_name='table_lock_wait_timeout';