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