~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/variables.test

  • Committer: Brian Aker
  • Date: 2010-02-14 02:02:48 UTC
  • mfrom: (1273.13.64 fix_is)
  • Revision ID: brian@gaz-20100214020248-bhovaejhz9fmer3q
Merge in data_dictionary.

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;
132
135
select @@query_alloc_block_size;
133
136
show variables like '%alloc%';
134
 
select * from information_schema.session_variables where variable_name like '%alloc%';
 
137
select * from data_dictionary.session_variables where variable_name like '%alloc%';
135
138
set @@range_alloc_block_size=default;
136
139
set @@query_alloc_block_size=default, @@query_prealloc_size=default;
137
140
show variables like '%alloc%';
138
 
select * from information_schema.session_variables where variable_name like '%alloc%';
 
141
select * from data_dictionary.session_variables where variable_name like '%alloc%';
139
142
 
140
143
#
141
144
# Bug #10904 Illegal mix of collations between
236
239
--replace_result 4294967296 MAX_FILE_SIZE 2146435072 MAX_FILE_SIZE
237
240
show global variables like 'myisam_max_sort_file_size';
238
241
--replace_result 4294967296 MAX_FILE_SIZE 2146435072 MAX_FILE_SIZE
239
 
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
 
242
select * from data_dictionary.global_variables where variable_name like 'myisam_max_sort_file_size';
240
243
set global myisam_max_sort_file_size=default;
241
244
 
242
245
## Bug #311084
294
297
 
295
298
SET GLOBAL table_open_cache=-1;
296
299
SHOW VARIABLES LIKE 'table_open_cache';
297
 
SELECT * FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE 'table_open_cache';
 
300
SELECT * FROM DATA_DICTIONARY.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE 'table_open_cache';
298
301
SET GLOBAL table_open_cache=DEFAULT;
299
302
 
300
303
#
396
399
# Bug #10351: Setting ulong variable to > MAX_ULONG fails on 32-bit platform
397
400
#
398
401
--disable_query_log
399
 
select VARIABLE_VALUE from information_schema.GLOBAL_VARIABLES where VARIABLE_NAME like "VERSION_COMPILE_MACHINE" into @arch;
 
402
select VARIABLE_VALUE from data_dictionary.GLOBAL_VARIABLES where VARIABLE_NAME like "VERSION_COMPILE_MACHINE" into @arch;
400
403
--enable_query_log
401
404
# We technically do not care about 32bit hardware. -Brian
402
405
#set @@max_heap_table_size= 4294967296;
427
430
#
428
431
# Bug #17849: Show sql_big_selects in SHOW VARIABLES
429
432
#
430
 
set @old_sql_big_selects = @@sql_big_selects;
 
433
set @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 INFORMATION_SCHEMA
434
 
#select * from information_schema.session_variables where variable_name like 'sql_big_selects';
435
 
set @@sql_big_selects = @old_sql_big_selects;
 
436
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
 
437
#select * from data_dictionary.session_variables where variable_name like 'sql_big_selects';
 
438
set @@sql_big_selects = @sql_big_selects;
436
439
 
437
440
#
438
441
# Bug #16195: SHOW VARIABLES doesn't report correctly sql_warnings and
440
443
441
444
set @@sql_notes = 0, @@sql_warnings = 0;
442
445
show variables like 'sql_notes';
443
 
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
444
 
#select * from information_schema.session_variables where variable_name like 'sql_notes';
 
446
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
 
447
#select * from data_dictionary.session_variables where variable_name like 'sql_notes';
445
448
show variables like 'sql_warnings';
446
 
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
447
 
#select * from information_schema.session_variables where variable_name like 'sql_warnings';
 
449
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
 
450
#select * from data_dictionary.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 INFORMATION_SCHEMA
451
 
#select * from information_schema.session_variables where variable_name like 'sql_notes';
 
453
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
 
454
#select * from data_dictionary.session_variables where variable_name like 'sql_notes';
452
455
show variables like 'sql_warnings';
453
 
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
454
 
#select * from information_schema.session_variables where variable_name like 'sql_warnings';
 
456
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
 
457
#select * from data_dictionary.session_variables where variable_name like 'sql_warnings';
455
458
 
456
459
#
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 INFORMATION_SCHEMA
475
 
#select * from information_schema.session_variables where variable_name like 'basedir';
 
477
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
 
478
#select * from data_dictionary.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 INFORMATION_SCHEMA
480
 
#select * from information_schema.session_variables where variable_name like 'datadir';
 
482
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
 
483
#select * from data_dictionary.session_variables where variable_name like 'datadir';
481
484
--replace_column 2 #
482
485
show variables like 'tmpdir';
483
486
--replace_column 2 #
484
 
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
485
 
#select * from information_schema.session_variables where variable_name like 'tmpdir';
486
 
 
487
 
#
488
 
# Bug #19606: make ssl settings available via SHOW VARIABLES and @@variables
489
 
490
 
# Don't actually output, since it depends on the system
491
 
#--replace_column 1 # 2 # 3 # 4 # 5 #
492
 
# Not supported in Drizzle
493
 
#select @@ssl_ca, @@ssl_capath, @@ssl_cert, @@ssl_cipher, @@ssl_key;
494
 
#--replace_column 2 #
495
 
#show variables like 'ssl%';
496
 
#--replace_column 2 #
497
 
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
498
 
#select * from information_schema.session_variables where variable_name like 'ssl%' order by 1;
499
 
 
500
 
#
501
 
# Bug #19616: make log_queries_not_using_indexes available in SHOW VARIABLES
502
 
# and as @@log_queries_not_using_indexes
503
 
#
504
 
# Not valid in Drizzle
505
 
#select @@log_queries_not_using_indexes;
506
 
#show variables like 'log_queries_not_using_indexes';
507
 
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
508
 
#select * from information_schema.session_variables where variable_name like 'log_queries_not_using_indexes';
509
487
 
510
488
#
511
489
# Bug#20908: Crash if select @@""
558
536
#
559
537
--replace_column 2 #
560
538
show global variables where variable_name='table_definition_cache' or Variable_name='table_lock_wait_timeout';
 
539
 
 
540
drop schema data_dictionary;