24
24
set @my_server_id =@@global.server_id;
25
25
set @my_slow_launch_time =@@global.slow_launch_time;
26
26
set @my_storage_engine =@@global.storage_engine;
27
set @my_thread_cache_size =@@global.thread_cache_size;
29
28
# case insensitivity tests (new in 5.0)
239
237
set sql_warnings=1;
240
238
set global table_open_cache=100;
241
239
set storage_engine=myisam;
242
set global thread_cache_size=100;
243
240
set timestamp=1, timestamp=default;
244
241
set tmp_table_size=100;
245
242
set tx_isolation="READ-COMMITTED";
359
356
SET GLOBAL table_open_cache=-1;
360
357
SHOW VARIABLES LIKE 'table_open_cache';
358
# NEEDS INVESTIGATION
361
359
SELECT * FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE 'table_open_cache';
362
360
SET GLOBAL table_open_cache=DEFAULT;
365
# Bugs12363: character_set_results is nullable,
366
# but value_ptr returns string "NULL"
368
set character_set_results=NULL;
369
select ifnull(@@character_set_results,"really null");
374
363
# Bug #9613: @@have_innodb
377
366
--replace_column 1 #
378
select @@have_innodb;
368
#select @@have_innodb;
381
371
# Tests for lc_time_names
487
477
# Bug #11775 Variable character_set_system does not exist (sometimes)
489
480
select @@character_set_system;
491
set global character_set_system = latin1;
482
set global character_set_system = utf8;
493
484
set @@global.version_compile_os='234';
496
# Check character_set_filesystem variable
487
# Check character_set_filesystem variable invalid for Drizzle
498
set character_set_filesystem=latin1;
499
select @@character_set_filesystem;
500
set @@global.character_set_filesystem=latin2;
501
set character_set_filesystem=latin1;
502
select @@character_set_filesystem;
503
set @@global.character_set_filesystem=latin2;
504
set character_set_filesystem=default;
505
select @@character_set_filesystem;
506
set @@global.character_set_filesystem=default;
507
select @@global.character_set_filesystem;
490
set @@global.character_set_filesystem=utf8;
492
set character_set_filesystem=utf8;
510
495
# Bug #17849: Show sql_big_selects in SHOW VARIABLES
512
497
set @old_sql_big_selects = @@sql_big_selects;
513
498
set @@sql_big_selects = 1;
514
499
show variables like 'sql_big_selects';
515
select * from information_schema.session_variables where variable_name like 'sql_big_selects';
500
# NEEDS INVESTIGATION
501
#select * from information_schema.session_variables where variable_name like 'sql_big_selects';
516
502
set @@sql_big_selects = @old_sql_big_selects;
522
508
set @@sql_notes = 0, @@sql_warnings = 0;
523
509
show variables like 'sql_notes';
524
select * from information_schema.session_variables where variable_name like 'sql_notes';
510
# NEEDS INVESTIGATION
511
#select * from information_schema.session_variables where variable_name like 'sql_notes';
525
512
show variables like 'sql_warnings';
526
select * from information_schema.session_variables where variable_name like 'sql_warnings';
513
# NEEDS INVESTIGATION
514
#select * from information_schema.session_variables where variable_name like 'sql_warnings';
527
515
set @@sql_notes = 1, @@sql_warnings = 1;
528
516
show variables like 'sql_notes';
529
select * from information_schema.session_variables where variable_name like 'sql_notes';
517
# NEEDS INVESTIGATION
518
#select * from information_schema.session_variables where variable_name like 'sql_notes';
530
519
show variables like 'sql_warnings';
531
select * from information_schema.session_variables where variable_name like 'sql_warnings';
520
# NEEDS INVESTIGATION
521
#select * from information_schema.session_variables where variable_name like 'sql_warnings';
534
524
# Bug #12792: @@system_time_zone is not SELECTable.
555
545
--replace_column 2 #
556
546
show variables like 'basedir';
557
547
--replace_column 2 #
558
select * from information_schema.session_variables where variable_name like 'basedir';
548
# NEEDS INVESTIGATION
549
#select * from information_schema.session_variables where variable_name like 'basedir';
559
550
--replace_column 2 #
560
551
show variables like 'datadir';
561
552
--replace_column 2 #
562
select * from information_schema.session_variables where variable_name like 'datadir';
553
# NEEDS INVESTIGATION
554
#select * from information_schema.session_variables where variable_name like 'datadir';
563
555
--replace_column 2 #
564
556
show variables like 'tmpdir';
565
557
--replace_column 2 #
566
select * from information_schema.session_variables where variable_name like 'tmpdir';
558
# NEEDS INVESTIGATION
559
#select * from information_schema.session_variables where variable_name like 'tmpdir';
569
562
# Bug #19606: make ssl settings available via SHOW VARIABLES and @@variables
571
564
# Don't actually output, since it depends on the system
572
565
--replace_column 1 # 2 # 3 # 4 # 5 #
573
select @@ssl_ca, @@ssl_capath, @@ssl_cert, @@ssl_cipher, @@ssl_key;
566
# NEEDS INVESTIGATION
567
#select @@ssl_ca, @@ssl_capath, @@ssl_cert, @@ssl_cipher, @@ssl_key;
574
568
--replace_column 2 #
575
569
show variables like 'ssl%';
576
570
--replace_column 2 #
577
select * from information_schema.session_variables where variable_name like 'ssl%' order by 1;
571
# NEEDS INVESTIGATION
572
#select * from information_schema.session_variables where variable_name like 'ssl%' order by 1;
580
575
# Bug #19616: make log_queries_not_using_indexes available in SHOW VARIABLES
581
576
# and as @@log_queries_not_using_indexes
583
select @@log_queries_not_using_indexes;
584
show variables like 'log_queries_not_using_indexes';
585
select * from information_schema.session_variables where variable_name like 'log_queries_not_using_indexes';
578
# NEEDS INVESTIGATION
579
#select @@log_queries_not_using_indexes;
580
#show variables like 'log_queries_not_using_indexes';
581
# NEEDS INVESTIGATION
582
#select * from information_schema.session_variables where variable_name like 'log_queries_not_using_indexes';
588
585
# Bug#20908: Crash if select @@""
616
613
set global binlog_cache_size =@my_binlog_cache_size;
617
614
set global connect_timeout =@my_connect_timeout;
618
615
set global flush =@my_flush;
616
# NEEDS INVESTIGATION
619
618
set global flush_time =@my_flush_time;
620
619
set global key_buffer_size =@my_key_buffer_size;
621
620
set global max_binlog_cache_size =default; #@my_max_binlog_cache_size;
628
627
#set global max_user_connections =default;
629
628
set global max_write_lock_count =default;
629
# NEEDS INVESTIGATION
630
631
set global myisam_data_pointer_size =@my_myisam_data_pointer_size;
631
632
set global net_buffer_length =@my_net_buffer_length;
632
633
set global net_write_timeout =@my_net_write_timeout;
633
634
set global net_read_timeout =@my_net_read_timeout;
635
# NEEDS INVESTIGATION
634
637
set global rpl_recovery_rank =@my_rpl_recovery_rank;
635
638
set global server_id =@my_server_id;
636
639
set global slow_launch_time =@my_slow_launch_time;
637
640
set global storage_engine =@my_storage_engine;
641
# NEEDS INVESTIGATION
638
643
set global thread_cache_size =@my_thread_cache_size;
641
646
# Bug#28580 Repeatation of status variables
643
648
--replace_column 2 #
644
show global variables where Variable_name='table_definition_cache' or
645
Variable_name='table_lock_wait_timeout';
649
# NEEDS INVESTIGATION
650
#show global variables where Variable_name='table_definition_cache' or
651
#Variable_name='table_lock_wait_timeout';
647
653
###########################################################################
651
657
--echo # -- Bug#34820: log_output can be set to illegal value.
660
# NEEDS INVESTIGATION
654
661
--error ER_WRONG_VALUE_FOR_VAR
655
SET GLOBAL log_output = '';
662
#SET GLOBAL log_output = '';
664
# NEEDS INVESTIGATION
657
665
--error ER_WRONG_VALUE_FOR_VAR
658
SET GLOBAL log_output = 0;
666
#SET GLOBAL log_output = 0;
661
669
--echo # -- End of Bug#34820.