~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/variables.test

  • Committer: Monty Taylor
  • Date: 2010-03-11 18:27:20 UTC
  • mfrom: (1333 staging)
  • mto: This revision was merged to the branch mainline in revision 1348.
  • Revision ID: mordred@inaugust.com-20100311182720-hd1h87y6cb1b1mp0
Merged trunk.

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
 
8
9
#
12
13
set @my_max_connect_errors        =@@global.max_connect_errors;
13
14
set @my_max_heap_table_size       =@@global.max_heap_table_size;
14
15
set @my_max_join_size             =@@global.max_join_size;
15
 
set @my_drizzle_protocol_buffer_length =@@global.drizzle_protocol_buffer_length;
 
16
set @my_mysql_protocol_buffer_length =@@global.mysql_protocol_buffer_length;
16
17
set @my_server_id                 =@@global.server_id;
17
18
set @my_storage_engine            =@@global.storage_engine;
18
19
set @my_myisam_sort_buffer_size   =@@global.myisam_sort_buffer_size;
64
65
set GLOBAL max_join_size=10;
65
66
set max_join_size=100;
66
67
show variables like 'max_join_size';
67
 
select * from information_schema.session_variables where variable_name like 'max_join_size';
 
68
select * from data_dictionary.session_variables where variable_name like 'max_join_size';
68
69
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR
69
70
show global variables like 'max_join_size';
70
71
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR
71
 
select * from information_schema.global_variables where variable_name like 'max_join_size';
 
72
select * from data_dictionary.global_variables where variable_name like 'max_join_size';
72
73
set GLOBAL max_join_size=2000;
73
74
show global variables like 'max_join_size';
74
 
select * from information_schema.global_variables where variable_name like 'max_join_size';
 
75
select * from data_dictionary.global_variables where variable_name like 'max_join_size';
75
76
set max_join_size=DEFAULT;
76
77
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR
77
78
show variables like 'max_join_size';
78
79
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR
79
 
select * from information_schema.session_variables where variable_name like 'max_join_size';
 
80
select * from data_dictionary.session_variables where variable_name like 'max_join_size';
80
81
set GLOBAL max_join_size=DEFAULT;
81
82
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR
82
83
show global variables like 'max_join_size';
83
84
--replace_result 18446744073709551615 HA_POS_ERROR 4294967295 HA_POS_ERROR
84
 
select * from information_schema.global_variables where variable_name like 'max_join_size';
 
85
select * from data_dictionary.global_variables where variable_name like 'max_join_size';
85
86
set @@max_join_size=1000, @@global.max_join_size=2000;
86
87
select @@local.max_join_size, @@global.max_join_size;
87
88
select @@identity,  length(@@version)>0;
93
94
 
94
95
set global timed_mutexes=ON;
95
96
show variables like 'timed_mutexes';
96
 
select * from information_schema.session_variables where variable_name like 'timed_mutexes';
 
97
select * from data_dictionary.session_variables where variable_name like 'timed_mutexes';
97
98
set global timed_mutexes=0;
98
99
show variables like 'timed_mutexes';
99
 
select * from information_schema.session_variables where variable_name like 'timed_mutexes';
 
100
select * from data_dictionary.session_variables where variable_name like 'timed_mutexes';
100
101
 
101
102
set storage_engine=MYISAM, storage_engine="MEMORY";
102
103
show local variables like 'storage_engine';
103
 
select * from information_schema.session_variables where variable_name like 'storage_engine';
 
104
select * from data_dictionary.session_variables where variable_name like 'storage_engine';
104
105
show global variables like 'storage_engine';
105
 
select * from information_schema.global_variables where variable_name like 'storage_engine';
 
106
select * from data_dictionary.global_variables where variable_name like 'storage_engine';
106
107
 
107
108
set GLOBAL myisam_max_sort_file_size=2000000;
108
109
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';
 
110
select * from data_dictionary.global_variables where variable_name like 'myisam_max_sort_file_size';
110
111
set GLOBAL myisam_max_sort_file_size=default;
111
112
--replace_result 9223372036853727232 FILE_SIZE 2146435072 FILE_SIZE
112
113
show global variables like 'myisam_max_sort_file_size';
113
114
--replace_result 9223372036853727232 FILE_SIZE 2146435072 FILE_SIZE
114
 
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
 
115
select * from data_dictionary.global_variables where variable_name like 'myisam_max_sort_file_size';
115
116
 
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';
 
117
set global mysql_protocol_buffer_length=1024;
 
118
show global variables like 'mysql_protocol_buffer_%';
 
119
select * from data_dictionary.global_variables where variable_name like 'mysql_protocol_buffer_%';
 
120
show global variables like 'mysql_protocol_buffer_%';
 
121
select * from data_dictionary.global_variables where variable_name like 'mysql_protocol_buffer_%';
 
122
set global mysql_protocol_buffer_length=1;
 
123
show variables like 'mysql_protocol_buffer_length';
123
124
#warning 1292
124
 
set global drizzle_protocol_buffer_length=2000000000;
125
 
show variables like 'drizzle_protocol_buffer_length';
 
125
set global mysql_protocol_buffer_length=2000000000;
 
126
show variables like 'mysql_protocol_buffer_length';
126
127
 
127
128
show variables like '%alloc%';
128
 
select * from information_schema.session_variables where variable_name like '%alloc%';
 
129
select * from data_dictionary.session_variables where variable_name like '%alloc%';
129
130
set @@range_alloc_block_size=1024*16;
130
131
set @@query_alloc_block_size=1024*17+2;
131
132
set @@query_prealloc_size=1024*18;
132
133
select @@query_alloc_block_size;
133
134
show variables like '%alloc%';
134
 
select * from information_schema.session_variables where variable_name like '%alloc%';
 
135
select * from data_dictionary.session_variables where variable_name like '%alloc%';
135
136
set @@range_alloc_block_size=default;
136
137
set @@query_alloc_block_size=default, @@query_prealloc_size=default;
137
138
show variables like '%alloc%';
138
 
select * from information_schema.session_variables where variable_name like '%alloc%';
 
139
select * from data_dictionary.session_variables where variable_name like '%alloc%';
139
140
 
140
141
#
141
142
# Bug #10904 Illegal mix of collations between
179
180
set max_sort_length=100;
180
181
set global max_write_lock_count=100;
181
182
set global myisam_sort_buffer_size=100;
182
 
set global drizzle_protocol_buffer_length=100;
 
183
set global mysql_protocol_buffer_length=100;
183
184
set read_buffer_size=100;
184
185
set read_rnd_buffer_size=100;
185
186
set global server_id=100;
236
237
--replace_result 4294967296 MAX_FILE_SIZE 2146435072 MAX_FILE_SIZE
237
238
show global variables like 'myisam_max_sort_file_size';
238
239
--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';
 
240
select * from data_dictionary.global_variables where variable_name like 'myisam_max_sort_file_size';
240
241
set global myisam_max_sort_file_size=default;
241
242
 
242
243
## Bug #311084
294
295
 
295
296
SET GLOBAL table_open_cache=-1;
296
297
SHOW VARIABLES LIKE 'table_open_cache';
297
 
SELECT * FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE 'table_open_cache';
 
298
SELECT * FROM DATA_DICTIONARY.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE 'table_open_cache';
298
299
SET GLOBAL table_open_cache=DEFAULT;
299
300
 
300
301
#
396
397
# Bug #10351: Setting ulong variable to > MAX_ULONG fails on 32-bit platform
397
398
#
398
399
--disable_query_log
399
 
select VARIABLE_VALUE from information_schema.GLOBAL_VARIABLES where VARIABLE_NAME like "VERSION_COMPILE_MACHINE" into @arch;
 
400
select VARIABLE_VALUE from data_dictionary.GLOBAL_VARIABLES where VARIABLE_NAME like "VERSION_COMPILE_MACHINE" into @arch;
400
401
--enable_query_log
401
402
# We technically do not care about 32bit hardware. -Brian
402
403
#set @@max_heap_table_size= 4294967296;
427
428
#
428
429
# Bug #17849: Show sql_big_selects in SHOW VARIABLES
429
430
#
430
 
set @old_sql_big_selects = @@sql_big_selects;
 
431
set @sql_big_selects = @@sql_big_selects;
431
432
set @@sql_big_selects = 1;
432
433
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;
 
434
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
 
435
#select * from data_dictionary.session_variables where variable_name like 'sql_big_selects';
 
436
set @@sql_big_selects = @sql_big_selects;
436
437
 
437
438
#
438
439
# Bug #16195: SHOW VARIABLES doesn't report correctly sql_warnings and
440
441
441
442
set @@sql_notes = 0, @@sql_warnings = 0;
442
443
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';
 
444
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
 
445
#select * from data_dictionary.session_variables where variable_name like 'sql_notes';
445
446
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';
 
447
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
 
448
#select * from data_dictionary.session_variables where variable_name like 'sql_warnings';
448
449
set @@sql_notes = 1, @@sql_warnings = 1;
449
450
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';
 
451
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
 
452
#select * from data_dictionary.session_variables where variable_name like 'sql_notes';
452
453
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';
 
454
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
 
455
#select * from data_dictionary.session_variables where variable_name like 'sql_warnings';
455
456
 
456
457
#
457
458
# Bug #15684: system variables cannot be SELECTed (e.g. @@version_comment)
471
472
--replace_column 2 #
472
473
show variables like 'basedir';
473
474
--replace_column 2 #
474
 
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
475
 
#select * from information_schema.session_variables where variable_name like 'basedir';
 
475
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
 
476
#select * from data_dictionary.session_variables where variable_name like 'basedir';
476
477
--replace_column 2 #
477
478
show variables like 'datadir';
478
479
--replace_column 2 #
479
 
# Bug 311025 Segmentation fault when accessing INFORMATION_SCHEMA
480
 
#select * from information_schema.session_variables where variable_name like 'datadir';
 
480
# Bug 311025 Segmentation fault when accessing DATA_DICTIONARY
 
481
#select * from data_dictionary.session_variables where variable_name like 'datadir';
481
482
--replace_column 2 #
482
483
show variables like 'tmpdir';
483
484
--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
485
 
510
486
#
511
487
# Bug#20908: Crash if select @@""
546
522
set global max_write_lock_count      =default;
547
523
--error 1232
548
524
set global myisam_data_pointer_size  =@my_myisam_data_pointer_size;
549
 
set global drizzle_protocol_buffer_length= @my_drizzle_protocol_buffer_length;
 
525
set global mysql_protocol_buffer_length= @my_mysql_protocol_buffer_length;
550
526
set global server_id                 =@my_server_id;
551
527
set global storage_engine            =@my_storage_engine;
552
528
--error 1193