9
9
# Bug #19263: variables.test doesn't clean up after itself (I/II -- save)
11
set @my_myisam_key_cache_size =@@global.myisam_key_cache_size;
11
set @my_key_buffer_size =@@global.key_buffer_size;
12
12
set @my_max_connect_errors =@@global.max_connect_errors;
13
13
set @my_max_heap_table_size =@@global.max_heap_table_size;
14
14
set @my_max_join_size =@@global.max_join_size;
15
set @my_mysql_protocol_buffer_length =@@global.mysql_protocol_buffer_length;
15
set @my_drizzle_protocol_buffer_length =@@global.drizzle_protocol_buffer_length;
16
16
set @my_server_id =@@global.server_id;
17
17
set @my_storage_engine =@@global.storage_engine;
18
18
set @my_myisam_sort_buffer_size =@@global.myisam_sort_buffer_size;
64
64
set GLOBAL max_join_size=10;
65
65
set max_join_size=100;
66
66
show variables like 'max_join_size';
67
select * from data_dictionary.session_variables where variable_name like 'max_join_size';
67
select * from information_schema.session_variables where variable_name like 'max_join_size';
68
68
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR
69
69
show global variables like 'max_join_size';
70
70
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR
71
select * from data_dictionary.global_variables where variable_name like 'max_join_size';
71
select * from information_schema.global_variables where variable_name like 'max_join_size';
72
72
set GLOBAL max_join_size=2000;
73
73
show global variables like 'max_join_size';
74
select * from data_dictionary.global_variables where variable_name like 'max_join_size';
74
select * from information_schema.global_variables where variable_name like 'max_join_size';
75
75
set max_join_size=DEFAULT;
76
76
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR
77
77
show variables like 'max_join_size';
78
78
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR
79
select * from data_dictionary.session_variables where variable_name like 'max_join_size';
79
select * from information_schema.session_variables where variable_name like 'max_join_size';
80
80
set GLOBAL max_join_size=DEFAULT;
81
81
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR
82
82
show global variables like 'max_join_size';
83
83
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR
84
select * from data_dictionary.global_variables where variable_name like 'max_join_size';
84
select * from information_schema.global_variables where variable_name like 'max_join_size';
85
85
set @@max_join_size=1000, @@global.max_join_size=2000;
86
86
select @@local.max_join_size, @@global.max_join_size;
87
87
select @@identity, length(@@version)>0;
94
94
set global timed_mutexes=ON;
95
95
show variables like 'timed_mutexes';
96
select * from data_dictionary.session_variables where variable_name like 'timed_mutexes';
96
select * from information_schema.session_variables where variable_name like 'timed_mutexes';
97
97
set global timed_mutexes=0;
98
98
show variables like 'timed_mutexes';
99
select * from data_dictionary.session_variables where variable_name like 'timed_mutexes';
99
select * from information_schema.session_variables where variable_name like 'timed_mutexes';
101
101
set storage_engine=MYISAM, storage_engine="MEMORY";
102
102
show local variables like 'storage_engine';
103
select * from data_dictionary.session_variables where variable_name like 'storage_engine';
103
select * from information_schema.session_variables where variable_name like 'storage_engine';
104
104
show global variables like 'storage_engine';
105
select * from data_dictionary.global_variables where variable_name like 'storage_engine';
105
select * from information_schema.global_variables where variable_name like 'storage_engine';
107
107
set GLOBAL myisam_max_sort_file_size=2000000;
108
108
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';
109
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
110
110
set GLOBAL myisam_max_sort_file_size=default;
111
111
--replace_result 9223372036853727232 FILE_SIZE 2146435072 FILE_SIZE
112
112
show global variables like 'myisam_max_sort_file_size';
113
113
--replace_result 9223372036853727232 FILE_SIZE 2146435072 FILE_SIZE
114
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';
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';
116
set global drizzle_protocol_buffer_length=1024;
117
show global variables like 'drizzle_protocol_buffer_%';
118
select * from information_schema.global_variables where variable_name like 'drizzle_protocol_buffer_%';
119
show global variables like 'drizzle_protocol_buffer_%';
120
select * from information_schema.global_variables where variable_name like 'drizzle_protocol_buffer_%';
121
set global drizzle_protocol_buffer_length=1;
122
show variables like 'drizzle_protocol_buffer_length';
124
set global mysql_protocol_buffer_length=2000000000;
125
show variables like 'mysql_protocol_buffer_length';
124
set global drizzle_protocol_buffer_length=2000000000;
125
show variables like 'drizzle_protocol_buffer_length';
127
127
show variables like '%alloc%';
128
select * from data_dictionary.session_variables where variable_name like '%alloc%';
128
select * from information_schema.session_variables where variable_name like '%alloc%';
129
129
set @@range_alloc_block_size=1024*16;
130
130
set @@query_alloc_block_size=1024*17+2;
131
131
set @@query_prealloc_size=1024*18;
132
set @@transaction_alloc_block_size=1024*20-1;
133
set @@transaction_prealloc_size=1024*21-1;
132
134
select @@query_alloc_block_size;
133
135
show variables like '%alloc%';
134
select * from data_dictionary.session_variables where variable_name like '%alloc%';
136
select * from information_schema.session_variables where variable_name like '%alloc%';
135
137
set @@range_alloc_block_size=default;
136
138
set @@query_alloc_block_size=default, @@query_prealloc_size=default;
139
set transaction_alloc_block_size=default, @@transaction_prealloc_size=default;
137
140
show variables like '%alloc%';
138
select * from data_dictionary.session_variables where variable_name like '%alloc%';
141
select * from information_schema.session_variables where variable_name like '%alloc%';
141
144
# Bug #10904 Illegal mix of collations between
204
207
create temporary table t2 (a int not null auto_increment, primary key(a));
205
208
insert into t1 values(null),(null),(null);
206
209
insert into t2 values(null),(null),(null);
207
set global myisam_key_cache_size=100000;
208
select @@myisam_key_cache_size;
210
set global key_buffer_size=100000;
211
select @@key_buffer_size;
209
212
select * from t1 where a=2;
210
213
select * from t2 where a=3;
211
214
check table t1,t2;
259
262
# Bug#2586:Disallow global/session/local as structured var. instance names
262
set @@global.global.myisam_key_cache_size= 1;
265
set @@global.global.key_buffer_size= 1;
264
set GLOBAL global.myisam_key_cache_size= 1;
266
SELECT @@global.global.myisam_key_cache_size;
268
SELECT @@global.session.myisam_key_cache_size;
270
SELECT @@global.local.myisam_key_cache_size;
267
set GLOBAL global.key_buffer_size= 1;
269
SELECT @@global.global.key_buffer_size;
271
SELECT @@global.session.key_buffer_size;
273
SELECT @@global.local.key_buffer_size;
273
276
# BUG#4788 show create table provides incorrect statement
428
431
# Bug #17849: Show sql_big_selects in SHOW VARIABLES
430
set @sql_big_selects = @@sql_big_selects;
433
set @old_sql_big_selects = @@sql_big_selects;
431
434
set @@sql_big_selects = 1;
432
435
show variables like 'sql_big_selects';
433
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
434
#select * from data_dictionary.session_variables where variable_name like 'sql_big_selects';
435
set @@sql_big_selects = @sql_big_selects;
436
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
437
#select * from information_schema.session_variables where variable_name like 'sql_big_selects';
438
set @@sql_big_selects = @old_sql_big_selects;
438
441
# Bug #16195: SHOW VARIABLES doesn't report correctly sql_warnings and
441
444
set @@sql_notes = 0, @@sql_warnings = 0;
442
445
show variables like 'sql_notes';
443
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
444
#select * from data_dictionary.session_variables where variable_name like 'sql_notes';
446
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
447
#select * from information_schema.session_variables where variable_name like 'sql_notes';
445
448
show variables like 'sql_warnings';
446
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
447
#select * from data_dictionary.session_variables where variable_name like 'sql_warnings';
449
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
450
#select * from information_schema.session_variables where variable_name like 'sql_warnings';
448
451
set @@sql_notes = 1, @@sql_warnings = 1;
449
452
show variables like 'sql_notes';
450
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
451
#select * from data_dictionary.session_variables where variable_name like 'sql_notes';
453
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
454
#select * from information_schema.session_variables where variable_name like 'sql_notes';
452
455
show variables like 'sql_warnings';
453
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
454
#select * from data_dictionary.session_variables where variable_name like 'sql_warnings';
456
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
457
#select * from information_schema.session_variables where variable_name like 'sql_warnings';
457
460
# Bug #15684: system variables cannot be SELECTed (e.g. @@version_comment)
471
474
--replace_column 2 #
472
475
show variables like 'basedir';
473
476
--replace_column 2 #
474
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
475
#select * from data_dictionary.session_variables where variable_name like 'basedir';
477
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
478
#select * from information_schema.session_variables where variable_name like 'basedir';
476
479
--replace_column 2 #
477
480
show variables like 'datadir';
478
481
--replace_column 2 #
479
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
480
#select * from data_dictionary.session_variables where variable_name like 'datadir';
482
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
483
#select * from information_schema.session_variables where variable_name like 'datadir';
481
484
--replace_column 2 #
482
485
show variables like 'tmpdir';
483
486
--replace_column 2 #
487
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
488
#select * from information_schema.session_variables where variable_name like 'tmpdir';
491
# Bug #19606: make ssl settings available via SHOW VARIABLES and @@variables
493
# Don't actually output, since it depends on the system
494
#--replace_column 1 # 2 # 3 # 4 # 5 #
495
# Not supported in Drizzle
496
#select @@ssl_ca, @@ssl_capath, @@ssl_cert, @@ssl_cipher, @@ssl_key;
497
#--replace_column 2 #
498
#show variables like 'ssl%';
499
#--replace_column 2 #
500
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
501
#select * from information_schema.session_variables where variable_name like 'ssl%' order by 1;
504
# Bug #19616: make log_queries_not_using_indexes available in SHOW VARIABLES
505
# and as @@log_queries_not_using_indexes
507
# Not valid in Drizzle
508
#select @@log_queries_not_using_indexes;
509
#show variables like 'log_queries_not_using_indexes';
510
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
511
#select * from information_schema.session_variables where variable_name like 'log_queries_not_using_indexes';
486
514
# Bug#20908: Crash if select @@""