~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/variables.test

  • Committer: Stewart Smith
  • Date: 2009-06-16 00:44:35 UTC
  • mto: (1119.2.6 merge)
  • mto: This revision was merged to the branch mainline in revision 1124.
  • Revision ID: stewart@flamingspork.com-20090616004435-t1vust6erhco7edc
make comment_index test not leave tables behind after running

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