~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/variables.test

Merged up with brian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
#
4
4
--disable_warnings
5
5
drop table if exists t1,t2;
 
6
drop schema if exists data_dictionary;
6
7
--enable_warnings
7
8
 
 
9
create schema data_dictionary;
 
10
 
8
11
#
9
12
# Bug #19263: variables.test doesn't clean up after itself (I/II -- save)
10
13
#
64
67
set GLOBAL max_join_size=10;
65
68
set max_join_size=100;
66
69
show variables like 'max_join_size';
67
 
select * from information_schema.session_variables where variable_name like 'max_join_size';
 
70
select * from data_dictionary.session_variables where variable_name like 'max_join_size';
68
71
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR
69
72
show global variables like 'max_join_size';
70
73
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR
71
 
select * from information_schema.global_variables where variable_name like 'max_join_size';
 
74
select * from data_dictionary.global_variables where variable_name like 'max_join_size';
72
75
set GLOBAL max_join_size=2000;
73
76
show global variables like 'max_join_size';
74
 
select * from information_schema.global_variables where variable_name like 'max_join_size';
 
77
select * from data_dictionary.global_variables where variable_name like 'max_join_size';
75
78
set max_join_size=DEFAULT;
76
79
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR
77
80
show variables like 'max_join_size';
78
81
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR
79
 
select * from information_schema.session_variables where variable_name like 'max_join_size';
 
82
select * from data_dictionary.session_variables where variable_name like 'max_join_size';
80
83
set GLOBAL max_join_size=DEFAULT;
81
84
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR
82
85
show global variables like 'max_join_size';
83
86
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR
84
 
select * from information_schema.global_variables where variable_name like 'max_join_size';
 
87
select * from data_dictionary.global_variables where variable_name like 'max_join_size';
85
88
set @@max_join_size=1000, @@global.max_join_size=2000;
86
89
select @@local.max_join_size, @@global.max_join_size;
87
90
select @@identity,  length(@@version)>0;
93
96
 
94
97
set global timed_mutexes=ON;
95
98
show variables like 'timed_mutexes';
96
 
select * from information_schema.session_variables where variable_name like 'timed_mutexes';
 
99
select * from data_dictionary.session_variables where variable_name like 'timed_mutexes';
97
100
set global timed_mutexes=0;
98
101
show variables like 'timed_mutexes';
99
 
select * from information_schema.session_variables where variable_name like 'timed_mutexes';
 
102
select * from data_dictionary.session_variables where variable_name like 'timed_mutexes';
100
103
 
101
104
set storage_engine=MYISAM, storage_engine="MEMORY";
102
105
show local variables like 'storage_engine';
103
 
select * from information_schema.session_variables where variable_name like 'storage_engine';
 
106
select * from data_dictionary.session_variables where variable_name like 'storage_engine';
104
107
show global variables like 'storage_engine';
105
 
select * from information_schema.global_variables where variable_name like 'storage_engine';
 
108
select * from data_dictionary.global_variables where variable_name like 'storage_engine';
106
109
 
107
110
set GLOBAL myisam_max_sort_file_size=2000000;
108
111
show global variables like 'myisam_max_sort_file_size';
109
 
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
 
112
select * from data_dictionary.global_variables where variable_name like 'myisam_max_sort_file_size';
110
113
set GLOBAL myisam_max_sort_file_size=default;
111
114
--replace_result 9223372036853727232 FILE_SIZE 2146435072 FILE_SIZE
112
115
show global variables like 'myisam_max_sort_file_size';
113
116
--replace_result 9223372036853727232 FILE_SIZE 2146435072 FILE_SIZE
114
 
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
 
117
select * from data_dictionary.global_variables where variable_name like 'myisam_max_sort_file_size';
115
118
 
116
119
set global drizzle_protocol_buffer_length=1024;
117
120
show global variables like 'drizzle_protocol_buffer_%';
118
 
select * from information_schema.global_variables where variable_name like 'drizzle_protocol_buffer_%';
 
121
select * from data_dictionary.global_variables where variable_name like 'drizzle_protocol_buffer_%';
119
122
show global variables like 'drizzle_protocol_buffer_%';
120
 
select * from information_schema.global_variables where variable_name like 'drizzle_protocol_buffer_%';
 
123
select * from data_dictionary.global_variables where variable_name like 'drizzle_protocol_buffer_%';
121
124
set global drizzle_protocol_buffer_length=1;
122
125
show variables like 'drizzle_protocol_buffer_length';
123
126
#warning 1292
125
128
show variables like 'drizzle_protocol_buffer_length';
126
129
 
127
130
show variables like '%alloc%';
128
 
select * from information_schema.session_variables where variable_name like '%alloc%';
 
131
select * from data_dictionary.session_variables where variable_name like '%alloc%';
129
132
set @@range_alloc_block_size=1024*16;
130
133
set @@query_alloc_block_size=1024*17+2;
131
134
set @@query_prealloc_size=1024*18;
133
136
set @@transaction_prealloc_size=1024*21-1;
134
137
select @@query_alloc_block_size;
135
138
show variables like '%alloc%';
136
 
select * from information_schema.session_variables where variable_name like '%alloc%';
 
139
select * from data_dictionary.session_variables where variable_name like '%alloc%';
137
140
set @@range_alloc_block_size=default;
138
141
set @@query_alloc_block_size=default, @@query_prealloc_size=default;
139
142
set transaction_alloc_block_size=default, @@transaction_prealloc_size=default;
140
143
show variables like '%alloc%';
141
 
select * from information_schema.session_variables where variable_name like '%alloc%';
 
144
select * from data_dictionary.session_variables where variable_name like '%alloc%';
142
145
 
143
146
#
144
147
# Bug #10904 Illegal mix of collations between
239
242
--replace_result 4294967296 MAX_FILE_SIZE 2146435072 MAX_FILE_SIZE
240
243
show global variables like 'myisam_max_sort_file_size';
241
244
--replace_result 4294967296 MAX_FILE_SIZE 2146435072 MAX_FILE_SIZE
242
 
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
 
245
select * from data_dictionary.global_variables where variable_name like 'myisam_max_sort_file_size';
243
246
set global myisam_max_sort_file_size=default;
244
247
 
245
248
## Bug #311084
297
300
 
298
301
SET GLOBAL table_open_cache=-1;
299
302
SHOW VARIABLES LIKE 'table_open_cache';
300
 
SELECT * FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE 'table_open_cache';
 
303
SELECT * FROM DATA_DICTIONARY.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE 'table_open_cache';
301
304
SET GLOBAL table_open_cache=DEFAULT;
302
305
 
303
306
#
399
402
# Bug #10351: Setting ulong variable to > MAX_ULONG fails on 32-bit platform
400
403
#
401
404
--disable_query_log
402
 
select VARIABLE_VALUE from information_schema.GLOBAL_VARIABLES where VARIABLE_NAME like "VERSION_COMPILE_MACHINE" into @arch;
 
405
select VARIABLE_VALUE from data_dictionary.GLOBAL_VARIABLES where VARIABLE_NAME like "VERSION_COMPILE_MACHINE" into @arch;
403
406
--enable_query_log
404
407
# We technically do not care about 32bit hardware. -Brian
405
408
#set @@max_heap_table_size= 4294967296;
430
433
#
431
434
# Bug #17849: Show sql_big_selects in SHOW VARIABLES
432
435
#
433
 
set @old_sql_big_selects = @@sql_big_selects;
 
436
set @sql_big_selects = @@sql_big_selects;
434
437
set @@sql_big_selects = 1;
435
438
show variables like '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;
 
439
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
 
440
#select * from data_dictionary.session_variables where variable_name like 'sql_big_selects';
 
441
set @@sql_big_selects = @sql_big_selects;
439
442
 
440
443
#
441
444
# Bug #16195: SHOW VARIABLES doesn't report correctly sql_warnings and
443
446
444
447
set @@sql_notes = 0, @@sql_warnings = 0;
445
448
show variables 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';
 
449
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
 
450
#select * from data_dictionary.session_variables where variable_name like 'sql_notes';
448
451
show variables 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';
 
452
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
 
453
#select * from data_dictionary.session_variables where variable_name like 'sql_warnings';
451
454
set @@sql_notes = 1, @@sql_warnings = 1;
452
455
show variables 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';
 
456
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
 
457
#select * from data_dictionary.session_variables where variable_name like 'sql_notes';
455
458
show variables 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';
 
459
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
 
460
#select * from data_dictionary.session_variables where variable_name like 'sql_warnings';
458
461
 
459
462
#
460
463
# Bug #15684: system variables cannot be SELECTed (e.g. @@version_comment)
474
477
--replace_column 2 #
475
478
show variables like 'basedir';
476
479
--replace_column 2 #
477
 
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
478
 
#select * from information_schema.session_variables where variable_name like 'basedir';
 
480
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
 
481
#select * from data_dictionary.session_variables where variable_name like 'basedir';
479
482
--replace_column 2 #
480
483
show variables like 'datadir';
481
484
--replace_column 2 #
482
 
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
483
 
#select * from information_schema.session_variables where variable_name like 'datadir';
 
485
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
 
486
#select * from data_dictionary.session_variables where variable_name like 'datadir';
484
487
--replace_column 2 #
485
488
show variables like 'tmpdir';
486
489
--replace_column 2 #
487
 
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
488
 
#select * from information_schema.session_variables where variable_name like 'tmpdir';
489
 
 
490
 
#
491
 
# Bug #19606: make ssl settings available via SHOW VARIABLES and @@variables
492
 
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;
502
 
 
503
 
#
504
 
# Bug #19616: make log_queries_not_using_indexes available in SHOW VARIABLES
505
 
# and as @@log_queries_not_using_indexes
506
 
#
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';
512
490
 
513
491
#
514
492
# Bug#20908: Crash if select @@""
561
539
#
562
540
--replace_column 2 #
563
541
show global variables where variable_name='table_definition_cache' or Variable_name='table_lock_wait_timeout';
 
542
 
 
543
drop schema data_dictionary;