~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/variables.test

  • Committer: Brian Aker
  • Date: 2009-02-07 21:33:55 UTC
  • Revision ID: brian@tangent.org-20090207213355-j2zrs4f569g0az9m
SmallĀ formattingĀ changes.

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