~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/variables.test

  • Committer: Brian Aker
  • Date: 2009-01-07 00:04:25 UTC
  • Revision ID: brian@tangent.org-20090107000425-67n3f86rw6k423xe
Fixed index_merge_innodb test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
#
9
9
# Bug #19263: variables.test doesn't clean up after itself (I/II -- save)
10
10
#
 
11
set @my_binlog_cache_size         =@@global.binlog_cache_size;
 
12
set @my_connect_timeout           =@@global.connect_timeout;
 
13
set @my_flush                     =@@global.flush;
 
14
set @my_key_buffer_size           =@@global.key_buffer_size;
 
15
set @my_max_binlog_cache_size     =@@global.max_binlog_cache_size;
 
16
set @my_max_binlog_size           =@@global.max_binlog_size;
11
17
set @my_max_connect_errors        =@@global.max_connect_errors;
 
18
set @my_max_connections           =@@global.max_connections;
12
19
set @my_max_heap_table_size       =@@global.max_heap_table_size;
13
20
set @my_max_join_size             =@@global.max_join_size;
14
 
set @my_mysql_protocol_buffer_length =@@global.mysql_protocol_buffer_length;
 
21
set @my_net_buffer_length         =@@global.net_buffer_length;
 
22
set @my_net_write_timeout         =@@global.net_write_timeout;
 
23
set @my_net_read_timeout          =@@global.net_read_timeout;
15
24
set @my_server_id                 =@@global.server_id;
 
25
set @my_slow_launch_time          =@@global.slow_launch_time;
16
26
set @my_storage_engine            =@@global.storage_engine;
17
 
set @my_myisam_sort_buffer_size   =@@global.myisam_sort_buffer_size;
18
 
set @my_tx_isolation      =@@global.tx_isolation;
19
27
 
20
28
# case insensitivity tests (new in 5.0)
21
29
set @`test`=1;
64
72
set GLOBAL max_join_size=10;
65
73
set max_join_size=100;
66
74
show variables like 'max_join_size';
67
 
select * from data_dictionary.session_variables where variable_name like 'max_join_size';
 
75
select * from information_schema.session_variables where variable_name like 'max_join_size';
68
76
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR
69
77
show global variables like 'max_join_size';
70
78
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR
71
 
select * from data_dictionary.global_variables where variable_name like 'max_join_size';
 
79
select * from information_schema.global_variables where variable_name like 'max_join_size';
72
80
set GLOBAL max_join_size=2000;
73
81
show global variables like 'max_join_size';
74
 
select * from data_dictionary.global_variables where variable_name like 'max_join_size';
 
82
select * from information_schema.global_variables where variable_name like 'max_join_size';
75
83
set max_join_size=DEFAULT;
76
84
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR
77
85
show variables like 'max_join_size';
78
86
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR
79
 
select * from data_dictionary.session_variables where variable_name like 'max_join_size';
 
87
select * from information_schema.session_variables where variable_name like 'max_join_size';
80
88
set GLOBAL max_join_size=DEFAULT;
81
89
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR
82
90
show global variables like 'max_join_size';
83
91
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR
84
 
select * from data_dictionary.global_variables where variable_name like 'max_join_size';
 
92
select * from information_schema.global_variables where variable_name like 'max_join_size';
85
93
set @@max_join_size=1000, @@global.max_join_size=2000;
86
94
select @@local.max_join_size, @@global.max_join_size;
87
95
select @@identity,  length(@@version)>0;
93
101
 
94
102
set global timed_mutexes=ON;
95
103
show variables like 'timed_mutexes';
96
 
select * from data_dictionary.session_variables where variable_name like 'timed_mutexes';
 
104
select * from information_schema.session_variables where variable_name like 'timed_mutexes';
97
105
set global timed_mutexes=0;
98
106
show variables like 'timed_mutexes';
99
 
select * from data_dictionary.session_variables where variable_name like 'timed_mutexes';
 
107
select * from information_schema.session_variables where variable_name like 'timed_mutexes';
100
108
 
101
 
set storage_engine=MYISAM, storage_engine="MEMORY";
 
109
set storage_engine=MYISAM, storage_engine="HEAP";
102
110
show local variables like 'storage_engine';
103
 
select * from data_dictionary.session_variables where variable_name like 'storage_engine';
 
111
select * from information_schema.session_variables where variable_name like 'storage_engine';
104
112
show global variables like 'storage_engine';
105
 
select * from data_dictionary.global_variables where variable_name like 'storage_engine';
 
113
select * from information_schema.global_variables where variable_name like 'storage_engine';
106
114
 
107
115
set GLOBAL myisam_max_sort_file_size=2000000;
108
116
show global variables like 'myisam_max_sort_file_size';
109
 
select * from data_dictionary.global_variables where variable_name like 'myisam_max_sort_file_size';
 
117
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
110
118
set GLOBAL myisam_max_sort_file_size=default;
111
119
--replace_result 9223372036853727232 FILE_SIZE 2146435072 FILE_SIZE
112
120
show global variables like 'myisam_max_sort_file_size';
113
121
--replace_result 9223372036853727232 FILE_SIZE 2146435072 FILE_SIZE
114
 
select * from data_dictionary.global_variables where variable_name like 'myisam_max_sort_file_size';
 
122
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
115
123
 
116
 
set global mysql_protocol_buffer_length=1024;
117
 
show global variables like 'mysql_protocol_buffer_%';
118
 
select * from data_dictionary.global_variables where variable_name like 'mysql_protocol_buffer_%';
119
 
show global variables like 'mysql_protocol_buffer_%';
120
 
select * from data_dictionary.global_variables where variable_name like 'mysql_protocol_buffer_%';
121
 
set global mysql_protocol_buffer_length=1;
122
 
show variables like 'mysql_protocol_buffer_length';
 
124
set global net_retry_count=10, session net_retry_count=10;
 
125
set global net_buffer_length=1024, net_write_timeout=200, net_read_timeout=300;
 
126
set session net_buffer_length=2048, net_write_timeout=500, net_read_timeout=600;
 
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 session net_buffer_length=8000, global net_read_timeout=900, net_write_timeout=1000;
 
132
show global variables like 'net_%';
 
133
select * from information_schema.global_variables where variable_name like 'net_%' order by 1;
 
134
show session variables like 'net_%';
 
135
select * from information_schema.session_variables where variable_name like 'net_%' order by 1;
 
136
set net_buffer_length=1;
 
137
show variables like 'net_buffer_length';
 
138
select * from information_schema.session_variables where variable_name like 'net_buffer_length';
123
139
#warning 1292
124
 
set global mysql_protocol_buffer_length=2000000000;
125
 
show variables like 'mysql_protocol_buffer_length';
 
140
set net_buffer_length=2000000000;
 
141
show variables like 'net_buffer_length';
 
142
select * from information_schema.session_variables where variable_name like 'net_buffer_length';
126
143
 
127
144
show variables like '%alloc%';
128
 
select * from data_dictionary.session_variables where variable_name like '%alloc%';
 
145
select * from information_schema.session_variables where variable_name like '%alloc%' order by 1;
129
146
set @@range_alloc_block_size=1024*16;
130
147
set @@query_alloc_block_size=1024*17+2;
131
148
set @@query_prealloc_size=1024*18;
 
149
set @@transaction_alloc_block_size=1024*20-1;
 
150
set @@transaction_prealloc_size=1024*21-1;
132
151
select @@query_alloc_block_size;
133
152
show variables like '%alloc%';
134
 
select * from data_dictionary.session_variables where variable_name like '%alloc%';
 
153
select * from information_schema.session_variables where variable_name like '%alloc%' order by 1;
135
154
set @@range_alloc_block_size=default;
136
155
set @@query_alloc_block_size=default, @@query_prealloc_size=default;
 
156
set transaction_alloc_block_size=default, @@transaction_prealloc_size=default;
137
157
show variables like '%alloc%';
138
 
select * from data_dictionary.session_variables where variable_name like '%alloc%';
 
158
select * from information_schema.session_variables where variable_name like '%alloc%' order by 1;
139
159
 
140
160
#
141
161
# Bug #10904 Illegal mix of collations between
146
166
 
147
167
# The following should give errors
148
168
 
149
 
--error ER_UNKNOWN_SYSTEM_VARIABLE
 
169
--error 1193
150
170
set unknown_variable=1;
151
 
--error ER_WRONG_TYPE_FOR_VAR
 
171
--error 1232
152
172
set max_join_size="hello";
153
 
--error ER_UNKNOWN_STORAGE_ENGINE
 
173
--error 1286
154
174
set storage_engine=UNKNOWN_TABLE_TYPE;
155
 
--error ER_NO_DEFAULT
 
175
--error 1230
156
176
set GLOBAL storage_engine=DEFAULT;
157
 
--error ER_LOCAL_VARIABLE
 
177
--error 1228
158
178
set global autocommit=1;
159
 
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
 
179
--error 1238
160
180
select @@global.timestamp;
161
 
--error ER_INCORRECT_GLOBAL_LOCAL_VAR 
 
181
--error 1238 
162
182
set @@version='';
163
 
--error ER_GLOBAL_VARIABLE
 
183
--error 1229
164
184
set myisam_max_sort_file_size=100;
165
 
--error ER_WRONG_VALUE_FOR_VAR
 
185
--error 1231
166
186
set @@SQL_WARNINGS=NULL;
167
187
 
168
188
# Test setting all variables
169
189
 
170
190
set autocommit=1;
171
191
select @@autocommit;
 
192
set global binlog_cache_size=100;
172
193
set bulk_insert_buffer_size=100;
 
194
set global connect_timeout=100;
 
195
select @@delay_key_write;
 
196
set global delay_key_write="OFF";
 
197
select @@delay_key_write;
 
198
set global delay_key_write=ALL;
 
199
set global delay_key_write=1;
 
200
select @@delay_key_write;
 
201
set interactive_timeout=100;
173
202
set join_buffer_size=100;
174
203
set last_insert_id=1;
 
204
set global local_infile=1;
175
205
set max_allowed_packet=100;
 
206
set global max_binlog_cache_size=100;
 
207
set global max_binlog_size=100;
176
208
set global max_connect_errors=100;
 
209
set global max_connections=100;
177
210
set max_heap_table_size=100;
178
211
set max_join_size=100;
179
212
set max_sort_length=100;
 
213
set max_tmp_tables=100;
180
214
set global max_write_lock_count=100;
181
 
set global myisam_sort_buffer_size=100;
182
 
set global mysql_protocol_buffer_length=100;
 
215
set myisam_sort_buffer_size=100;
 
216
set net_buffer_length=100;
 
217
set net_read_timeout=100;
 
218
set net_write_timeout=100;
183
219
set read_buffer_size=100;
184
220
set read_rnd_buffer_size=100;
185
221
set global server_id=100;
 
222
set global slow_launch_time=100;
186
223
set sort_buffer_size=100;
187
224
set sql_big_selects=1;
188
225
set sql_buffer_result=1;
 
226
set sql_log_bin=1;
 
227
set sql_quote_show_create=1;
 
228
set sql_safe_updates=1;
189
229
set sql_select_limit=1;
190
230
# reset it, so later tests don't get confused
191
231
set sql_select_limit=default;
195
235
set timestamp=1, timestamp=default;
196
236
set tmp_table_size=100;
197
237
set tx_isolation="READ-COMMITTED";
 
238
set wait_timeout=100;
 
239
 
 
240
#
 
241
# key buffer
 
242
#
 
243
 
 
244
create table t1 (a int not null auto_increment, primary key(a));
 
245
create table t2 (a int not null auto_increment, primary key(a));
 
246
insert into t1 values(null),(null),(null);
 
247
insert into t2 values(null),(null),(null);
 
248
set global key_buffer_size=100000;
 
249
select @@key_buffer_size;
 
250
select * from t1 where a=2;
 
251
select * from t2 where a=3;
 
252
check table t1,t2;
 
253
select max(a) +1, max(a) +2 into @xx,@yy from t1;
 
254
drop table t1,t2;
 
255
 
 
256
#
 
257
# error conditions
 
258
#
 
259
 
 
260
--error 1193
 
261
select @@xxxxxxxxxx;
 
262
select 1;
 
263
 
 
264
--error 1238
 
265
select @@session.key_buffer_size;
 
266
 
 
267
--error 1229
 
268
set init_connect = NULL;
 
269
set global init_connect = NULL;
198
270
 
199
271
# Bug#3754 SET GLOBAL myisam_max_sort_file_size doesn't work as
200
272
# expected: check that there is no overflow when 64-bit
204
276
--replace_result 4294967296 MAX_FILE_SIZE 2146435072 MAX_FILE_SIZE
205
277
show global variables like 'myisam_max_sort_file_size';
206
278
--replace_result 4294967296 MAX_FILE_SIZE 2146435072 MAX_FILE_SIZE
207
 
select * from data_dictionary.global_variables where variable_name like 'myisam_max_sort_file_size';
 
279
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
208
280
set global myisam_max_sort_file_size=default;
209
281
 
210
282
## Bug #311084
224
296
#select @a, @b;
225
297
 
226
298
#
 
299
# Bug#2586:Disallow global/session/local as structured var. instance names
 
300
#
 
301
--error 1064
 
302
set @@global.global.key_buffer_size= 1;
 
303
--error 1064
 
304
set GLOBAL global.key_buffer_size= 1;
 
305
--error 1064
 
306
SELECT @@global.global.key_buffer_size;
 
307
--error 1064
 
308
SELECT @@global.session.key_buffer_size;
 
309
--error 1064
 
310
SELECT @@global.local.key_buffer_size;
 
311
 
 
312
#
227
313
# BUG#4788 show create table provides incorrect statement
228
314
#
229
315
# What default width have numeric types?
230
 
create temporary table t1 (
 
316
create table t1 (
231
317
  c1 int,
232
318
  c2 int,
233
319
  c3 int,
238
324
#
239
325
# What types and widths have variables?
240
326
set @arg00= 8, @arg01= 8.8, @arg02= 'a string', @arg03= 0.2e0;
241
 
create temporary table t1 as select @arg00 as c1, @arg01 as c2, @arg02 as c3, @arg03 as c4;
 
327
create table t1 as select @arg00 as c1, @arg01 as c2, @arg02 as c3, @arg03 as c4;
242
328
show create table t1;
243
329
drop table t1;
244
330
 
248
334
 
249
335
SET GLOBAL table_open_cache=-1;
250
336
SHOW VARIABLES LIKE 'table_open_cache';
251
 
SELECT * FROM DATA_DICTIONARY.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE 'table_open_cache';
 
337
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
 
338
#SELECT * FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE 'table_open_cache';
252
339
SET GLOBAL table_open_cache=DEFAULT;
253
340
 
254
341
#
268
355
--echo *** LC_TIME_NAMES: testing with string expressions
269
356
set lc_time_names=concat('de','_','DE');
270
357
select @@lc_time_names;
271
 
--error ER_UNKNOWN_ERROR
 
358
--error 1105
272
359
set lc_time_names=concat('de','+','DE');
273
360
select @@lc_time_names;
274
361
--echo LC_TIME_NAMES: testing with numeric expressions
275
362
set @@lc_time_names=1+2;
276
363
select @@lc_time_names;
277
 
--error ER_WRONG_TYPE_FOR_VAR
 
364
--error 1232
278
365
set @@lc_time_names=1/0;
279
366
select @@lc_time_names;
280
367
set lc_time_names=en_US;
281
368
--echo LC_TIME_NAMES: testing NULL and a negative number:
282
 
--error ER_WRONG_VALUE_FOR_VAR
 
369
--error 1231
283
370
set lc_time_names=NULL;
284
 
--error ER_UNKNOWN_ERROR
 
371
--error 1105
285
372
set lc_time_names=-1;
286
373
select @@lc_time_names;
287
374
--echo LC_TIME_NAMES: testing locale with the last ID:
288
375
set lc_time_names=108;
289
376
select @@lc_time_names;
290
377
--echo LC_TIME_NAMES: testing a number beyond the valid ID range:
291
 
--error ER_UNKNOWN_ERROR
 
378
--error 1105
292
379
set lc_time_names=109;
293
380
select @@lc_time_names;
294
381
--echo LC_TIME_NAMES: testing that 0 is en_US:
332
419
# Bug#6282 Packet error with SELECT INTO
333
420
334
421
 
335
 
create temporary table t1 (a int);
 
422
create table t1 (a int);
336
423
select a into @x from t1;
337
424
show warnings;
338
425
drop table t1;
341
428
# Bug #10339: read only variables.
342
429
#
343
430
 
344
 
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
 
431
--error 1238
345
432
set @@warning_count=1;
346
 
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
 
433
--error 1238
347
434
set @@global.error_count=1;
348
435
 
349
436
#
350
437
# Bug #10351: Setting ulong variable to > MAX_ULONG fails on 32-bit platform
351
438
#
352
 
--disable_query_log
353
 
select VARIABLE_VALUE from data_dictionary.GLOBAL_VARIABLES where VARIABLE_NAME like "VERSION_COMPILE_MACHINE" into @arch;
354
 
--enable_query_log
355
 
# We technically do not care about 32bit hardware. -Brian
356
 
#set @@max_heap_table_size= 4294967296;
357
 
#select @@max_heap_table_size > 0;
358
 
#set global max_heap_table_size= 4294967296;
359
 
#select @@max_heap_table_size > 0;
360
 
#set @@max_heap_table_size= 4294967296;
361
 
#select @@max_heap_table_size > 0;
362
 
--enable_warnings
 
439
 
 
440
set @@max_heap_table_size= 4294967296;
 
441
select @@max_heap_table_size > 0;
 
442
set global max_heap_table_size= 4294967296;
 
443
select @@max_heap_table_size > 0;
 
444
set @@max_heap_table_size= 4294967296;
 
445
select @@max_heap_table_size > 0;
 
446
 
363
447
#
364
448
# Bug #11775 Variable character_set_system does not exist (sometimes)
365
449
#
366
 
--error ER_UNKNOWN_SYSTEM_VARIABLE
 
450
--error 1193
367
451
select @@character_set_system;
368
 
--error ER_UNKNOWN_SYSTEM_VARIABLE
 
452
--error 1193
369
453
set global character_set_system = utf8;
370
 
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
 
454
--error 1238
371
455
set @@global.version_compile_os='234';
372
456
 
373
457
#
374
458
# Check character_set_filesystem variable invalid for Drizzle
375
459
#
376
 
--error ER_UNKNOWN_SYSTEM_VARIABLE
 
460
--error 1193
377
461
set @@global.character_set_filesystem=utf8;
378
 
--error ER_UNKNOWN_SYSTEM_VARIABLE
 
462
--error 1193
379
463
set character_set_filesystem=utf8;
380
464
 
381
465
#
382
466
# Bug #17849: Show sql_big_selects in SHOW VARIABLES
383
467
#
384
 
set @sql_big_selects = @@sql_big_selects;
 
468
set @old_sql_big_selects = @@sql_big_selects;
385
469
set @@sql_big_selects = 1;
386
470
show variables like 'sql_big_selects';
387
 
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
388
 
#select * from data_dictionary.session_variables where variable_name like 'sql_big_selects';
389
 
set @@sql_big_selects = @sql_big_selects;
 
471
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
 
472
#select * from information_schema.session_variables where variable_name like 'sql_big_selects';
 
473
set @@sql_big_selects = @old_sql_big_selects;
390
474
 
391
475
#
392
476
# Bug #16195: SHOW VARIABLES doesn't report correctly sql_warnings and
394
478
395
479
set @@sql_notes = 0, @@sql_warnings = 0;
396
480
show variables like 'sql_notes';
397
 
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
398
 
#select * from data_dictionary.session_variables where variable_name like 'sql_notes';
 
481
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
 
482
#select * from information_schema.session_variables where variable_name like 'sql_notes';
399
483
show variables like 'sql_warnings';
400
 
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
401
 
#select * from data_dictionary.session_variables where variable_name like 'sql_warnings';
 
484
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
 
485
#select * from information_schema.session_variables where variable_name like 'sql_warnings';
402
486
set @@sql_notes = 1, @@sql_warnings = 1;
403
487
show variables like 'sql_notes';
404
 
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
405
 
#select * from data_dictionary.session_variables where variable_name like 'sql_notes';
 
488
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
 
489
#select * from information_schema.session_variables where variable_name like 'sql_notes';
406
490
show variables like 'sql_warnings';
407
 
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
408
 
#select * from data_dictionary.session_variables where variable_name like 'sql_warnings';
 
491
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
 
492
#select * from information_schema.session_variables where variable_name like 'sql_warnings';
 
493
 
 
494
#
 
495
# Bug #12792: @@system_time_zone is not SELECTable.
 
496
#
 
497
# Don't actually output, since it depends on the system
 
498
--replace_column 1 #
 
499
select @@system_time_zone;
409
500
 
410
501
#
411
502
# Bug #15684: system variables cannot be SELECTed (e.g. @@version_comment)
425
516
--replace_column 2 #
426
517
show variables like 'basedir';
427
518
--replace_column 2 #
428
 
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
429
 
#select * from data_dictionary.session_variables where variable_name like 'basedir';
 
519
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
 
520
#select * from information_schema.session_variables where variable_name like 'basedir';
430
521
--replace_column 2 #
431
522
show variables like 'datadir';
432
523
--replace_column 2 #
433
 
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
434
 
#select * from data_dictionary.session_variables where variable_name like 'datadir';
 
524
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
 
525
#select * from information_schema.session_variables where variable_name like 'datadir';
435
526
--replace_column 2 #
436
527
show variables like 'tmpdir';
437
528
--replace_column 2 #
 
529
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
 
530
#select * from information_schema.session_variables where variable_name like 'tmpdir';
 
531
 
 
532
#
 
533
# Bug #19606: make ssl settings available via SHOW VARIABLES and @@variables
 
534
 
535
# Don't actually output, since it depends on the system
 
536
#--replace_column 1 # 2 # 3 # 4 # 5 #
 
537
# Not supported in Drizzle
 
538
#select @@ssl_ca, @@ssl_capath, @@ssl_cert, @@ssl_cipher, @@ssl_key;
 
539
#--replace_column 2 #
 
540
#show variables like 'ssl%';
 
541
#--replace_column 2 #
 
542
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
 
543
#select * from information_schema.session_variables where variable_name like 'ssl%' order by 1;
 
544
 
 
545
#
 
546
# Bug #19616: make log_queries_not_using_indexes available in SHOW VARIABLES
 
547
# and as @@log_queries_not_using_indexes
 
548
#
 
549
# Not valid in Drizzle
 
550
#select @@log_queries_not_using_indexes;
 
551
#show variables like 'log_queries_not_using_indexes';
 
552
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
 
553
#select * from information_schema.session_variables where variable_name like 'log_queries_not_using_indexes';
438
554
 
439
555
#
440
556
# Bug#20908: Crash if select @@""
452
568
# Don't actually output, since it depends on the system
453
569
--replace_column 1 #
454
570
select @@hostname;
455
 
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
 
571
--error 1238
456
572
set @@hostname= "anothername";
457
573
--replace_column 2 #
458
574
show variables like 'hostname';
465
581
# Bug #19263: variables.test doesn't clean up after itself (II/II --
466
582
# restore)
467
583
#
468
 
--error ER_UNKNOWN_SYSTEM_VARIABLE
 
584
set global binlog_cache_size         =@my_binlog_cache_size;
 
585
set global connect_timeout           =@my_connect_timeout;
 
586
set global flush                     =@my_flush;
 
587
--error 1193
469
588
set global flush_time                =@my_flush_time;
 
589
set global key_buffer_size           =@my_key_buffer_size;
 
590
set global max_binlog_cache_size     =default;                #@my_max_binlog_cache_size;
 
591
set global max_binlog_size           =@my_max_binlog_size;
470
592
set global max_connect_errors        =@my_max_connect_errors;
 
593
set global max_connections           =@my_max_connections;
471
594
set global max_heap_table_size       =@my_max_heap_table_size;
472
595
set global max_join_size             =@my_max_join_size;
473
596
# No default
 
597
#set global max_user_connections      =default;
474
598
set global max_write_lock_count      =default;
475
 
set global mysql_protocol_buffer_length= @my_mysql_protocol_buffer_length;
 
599
--error 1193
 
600
set global myisam_data_pointer_size  =@my_myisam_data_pointer_size;
 
601
set global net_buffer_length         =@my_net_buffer_length;
 
602
set global net_write_timeout         =@my_net_write_timeout;
 
603
set global net_read_timeout          =@my_net_read_timeout;
 
604
--error 1193
 
605
set global rpl_recovery_rank         =@my_rpl_recovery_rank;
476
606
set global server_id                 =@my_server_id;
 
607
set global slow_launch_time          =@my_slow_launch_time;
477
608
set global storage_engine            =@my_storage_engine;
478
 
--error ER_UNKNOWN_SYSTEM_VARIABLE
 
609
--error 1193
479
610
set global thread_cache_size         =@my_thread_cache_size;
480
 
set global myisam_sort_buffer_size   =@my_myisam_sort_buffer_size;
481
 
 
482
 
SHOW GLOBAL VARIABLES LIKE 'max_join_size';
483
 
SHOW LOCAL VARIABLES LIKE 'max_join_size';
484
 
 
485
 
set GLOBAL bulk_insert_buffer_size=DEFAULT;
486
 
set GLOBAL join_buffer_size=DEFAULT;
487
 
set GLOBAL max_allowed_packet=DEFAULT;
488
 
set GLOBAL max_connect_errors=DEFAULT;
489
 
set GLOBAL max_heap_table_size=DEFAULT;
490
 
set GLOBAL max_join_size=DEFAULT;
491
 
set GLOBAL max_sort_length=DEFAULT;
492
 
set GLOBAL max_write_lock_count=DEFAULT;
493
 
set GLOBAL myisam_sort_buffer_size=DEFAULT;
494
 
set GLOBAL mysql_protocol_buffer_length=DEFAULT;
495
 
set GLOBAL read_buffer_size=DEFAULT;
496
 
set GLOBAL read_rnd_buffer_size=DEFAULT;
497
 
set GLOBAL server_id=DEFAULT;
498
 
set GLOBAL sort_buffer_size=DEFAULT;
499
 
set GLOBAL table_open_cache=DEFAULT;
500
 
set GLOBAL storage_engine= @my_storage_engine;
501
 
set GLOBAL tmp_table_size=DEFAULT;
502
 
set GLOBAL tx_isolation= @my_tx_isolation;
503
 
 
504
 
set SESSION bulk_insert_buffer_size=DEFAULT;
505
 
set SESSION join_buffer_size=DEFAULT;
506
 
set SESSION max_allowed_packet=DEFAULT;
507
 
set SESSION max_heap_table_size=DEFAULT;
508
 
set SESSION max_join_size=DEFAULT;
509
 
set SESSION max_sort_length=DEFAULT;
510
 
set SESSION read_buffer_size=DEFAULT;
511
 
set SESSION read_rnd_buffer_size=DEFAULT;
512
 
set SESSION sort_buffer_size=DEFAULT;
513
 
set SESSION sql_big_selects=DEFAULT;
514
 
set SESSION sql_buffer_result=DEFAULT;
515
 
set SESSION sql_select_limit=DEFAULT;
516
 
set SESSION sql_warnings=DEFAULT;
517
 
set SESSION storage_engine= @my_storage_engine;
518
 
set SESSION tmp_table_size=DEFAULT;
519
 
set SESSION tx_isolation= @my_tx_isolation;
520
611
 
521
612
#
522
613
# Bug#28580 Repeatation of status variables
523
614
#
524
 
 
525
615
--replace_column 2 #
526
 
show global variables where variable_name='table_definition_cache' or Variable_name='table_lock_wait_timeout';
527
 
 
 
616
# Drizzle Bug 311044
 
617
#show global variables where variable_name='table_definition_cache' or Variable_name='table_lock_wait_timeout';