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