mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
fixes for sys_vars and pbxt suites
This commit is contained in:
@@ -5,22 +5,11 @@ insert into t2 select variable_name from information_schema.global_variables;
|
||||
insert into t2 select variable_name from information_schema.session_variables;
|
||||
delete from t2 where variable_name='innodb_change_buffering_debug';
|
||||
update t2 set variable_name= replace(variable_name, "PERFORMANCE_SCHEMA_", "PFS_");
|
||||
select distinct variable_name as `There should be *no* long test name listed below:` from t2
|
||||
select distinct variable_name as `there should be *no* long test name listed below:` from t2
|
||||
where length(variable_name) > 50;
|
||||
There should be *no* long test name listed below:
|
||||
select distinct variable_name as `There should be *no* variables listed below:` from t2
|
||||
there should be *no* long test name listed below:
|
||||
select distinct variable_name as `there should be *no* variables listed below:` from t2
|
||||
left join t1 on variable_name=test_name where test_name is null;
|
||||
There should be *no* variables listed below:
|
||||
BINLOG_ANNOTATE_ROWS_EVENTS
|
||||
BINLOG_DBUG_FSYNC_SLEEP
|
||||
BINLOG_OPTIMIZE_THREAD_SCHEDULING
|
||||
IN_TRANSACTION
|
||||
JOIN_BUFFER_SPACE_LIMIT
|
||||
LOG_BASENAME
|
||||
MYISAM_BLOCK_SIZE
|
||||
PROGRESS_REPORT_TIME
|
||||
QUERY_CACHE_STRIP_COMMENTS
|
||||
REPLICATE_ANNOTATE_ROWS_EVENTS
|
||||
THREAD_ALARM
|
||||
there should be *no* variables listed below:
|
||||
drop table t1;
|
||||
drop table t2;
|
||||
|
@@ -0,0 +1,50 @@
|
||||
SET @start_global_value = @@global.binlog_annotate_rows_events;
|
||||
select @@global.binlog_annotate_rows_events;
|
||||
@@global.binlog_annotate_rows_events
|
||||
0
|
||||
select @@session.binlog_annotate_rows_events;
|
||||
@@session.binlog_annotate_rows_events
|
||||
0
|
||||
show global variables like 'binlog_annotate_rows_events';
|
||||
Variable_name Value
|
||||
binlog_annotate_rows_events OFF
|
||||
show session variables like 'binlog_annotate_rows_events';
|
||||
Variable_name Value
|
||||
binlog_annotate_rows_events OFF
|
||||
select * from information_schema.global_variables where variable_name='binlog_annotate_rows_events';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
BINLOG_ANNOTATE_ROWS_EVENTS OFF
|
||||
select * from information_schema.session_variables where variable_name='binlog_annotate_rows_events';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
BINLOG_ANNOTATE_ROWS_EVENTS OFF
|
||||
set global binlog_annotate_rows_events=ON;
|
||||
select @@global.binlog_annotate_rows_events;
|
||||
@@global.binlog_annotate_rows_events
|
||||
1
|
||||
set global binlog_annotate_rows_events=OFF;
|
||||
select @@global.binlog_annotate_rows_events;
|
||||
@@global.binlog_annotate_rows_events
|
||||
0
|
||||
set global binlog_annotate_rows_events=1;
|
||||
select @@global.binlog_annotate_rows_events;
|
||||
@@global.binlog_annotate_rows_events
|
||||
1
|
||||
set session binlog_annotate_rows_events=ON;
|
||||
select @@session.binlog_annotate_rows_events;
|
||||
@@session.binlog_annotate_rows_events
|
||||
1
|
||||
set session binlog_annotate_rows_events=OFF;
|
||||
select @@session.binlog_annotate_rows_events;
|
||||
@@session.binlog_annotate_rows_events
|
||||
0
|
||||
set session binlog_annotate_rows_events=1;
|
||||
select @@session.binlog_annotate_rows_events;
|
||||
@@session.binlog_annotate_rows_events
|
||||
1
|
||||
set global binlog_annotate_rows_events=1.1;
|
||||
ERROR 42000: Incorrect argument type to variable 'binlog_annotate_rows_events'
|
||||
set session binlog_annotate_rows_events=1e1;
|
||||
ERROR 42000: Incorrect argument type to variable 'binlog_annotate_rows_events'
|
||||
set session binlog_annotate_rows_events="foo";
|
||||
ERROR 42000: Variable 'binlog_annotate_rows_events' can't be set to the value of 'foo'
|
||||
SET @@global.binlog_annotate_rows_events = @start_global_value;
|
@@ -0,0 +1,21 @@
|
||||
select @@global.binlog_optimize_thread_scheduling;
|
||||
@@global.binlog_optimize_thread_scheduling
|
||||
1
|
||||
select @@session.binlog_optimize_thread_scheduling;
|
||||
ERROR HY000: Variable 'binlog_optimize_thread_scheduling' is a GLOBAL variable
|
||||
show global variables like 'binlog_optimize_thread_scheduling';
|
||||
Variable_name Value
|
||||
binlog_optimize_thread_scheduling ON
|
||||
show session variables like 'binlog_optimize_thread_scheduling';
|
||||
Variable_name Value
|
||||
binlog_optimize_thread_scheduling ON
|
||||
select * from information_schema.global_variables where variable_name='binlog_optimize_thread_scheduling';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
BINLOG_OPTIMIZE_THREAD_SCHEDULING ON
|
||||
select * from information_schema.session_variables where variable_name='binlog_optimize_thread_scheduling';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
BINLOG_OPTIMIZE_THREAD_SCHEDULING ON
|
||||
set global binlog_optimize_thread_scheduling=1;
|
||||
ERROR HY000: Variable 'binlog_optimize_thread_scheduling' is a read only variable
|
||||
set session binlog_optimize_thread_scheduling=1;
|
||||
ERROR HY000: Variable 'binlog_optimize_thread_scheduling' is a read only variable
|
19
mysql-test/suite/sys_vars/r/in_transaction_basic.result
Normal file
19
mysql-test/suite/sys_vars/r/in_transaction_basic.result
Normal file
@@ -0,0 +1,19 @@
|
||||
select @@global.in_transaction;
|
||||
ERROR HY000: Variable 'in_transaction' is a SESSION variable
|
||||
select @@session.in_transaction;
|
||||
@@session.in_transaction
|
||||
0
|
||||
show global variables like 'in_transaction';
|
||||
Variable_name Value
|
||||
show session variables like 'in_transaction';
|
||||
Variable_name Value
|
||||
in_transaction 0
|
||||
select * from information_schema.global_variables where variable_name='in_transaction';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
select * from information_schema.session_variables where variable_name='in_transaction';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
IN_TRANSACTION 0
|
||||
set global in_transaction=1;
|
||||
ERROR HY000: Variable 'in_transaction' is a read only variable
|
||||
set session in_transaction=1;
|
||||
ERROR HY000: Variable 'in_transaction' is a read only variable
|
@@ -0,0 +1,57 @@
|
||||
SET @start_global_value = @@global.join_buffer_space_limit;
|
||||
select @@global.join_buffer_space_limit;
|
||||
@@global.join_buffer_space_limit
|
||||
2097152
|
||||
select @@session.join_buffer_space_limit;
|
||||
@@session.join_buffer_space_limit
|
||||
2097152
|
||||
show global variables like 'join_buffer_space_limit';
|
||||
Variable_name Value
|
||||
join_buffer_space_limit 2097152
|
||||
show session variables like 'join_buffer_space_limit';
|
||||
Variable_name Value
|
||||
join_buffer_space_limit 2097152
|
||||
select * from information_schema.global_variables where variable_name='join_buffer_space_limit';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
JOIN_BUFFER_SPACE_LIMIT 2097152
|
||||
select * from information_schema.session_variables where variable_name='join_buffer_space_limit';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
JOIN_BUFFER_SPACE_LIMIT 2097152
|
||||
set global join_buffer_space_limit=10;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect join_buffer_space_limit value: '10'
|
||||
select @@global.join_buffer_space_limit;
|
||||
@@global.join_buffer_space_limit
|
||||
2048
|
||||
set session join_buffer_space_limit=10;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect join_buffer_space_limit value: '10'
|
||||
select @@session.join_buffer_space_limit;
|
||||
@@session.join_buffer_space_limit
|
||||
2048
|
||||
set global join_buffer_space_limit=1.1;
|
||||
ERROR 42000: Incorrect argument type to variable 'join_buffer_space_limit'
|
||||
set session join_buffer_space_limit=1e1;
|
||||
ERROR 42000: Incorrect argument type to variable 'join_buffer_space_limit'
|
||||
set global join_buffer_space_limit="foo";
|
||||
ERROR 42000: Incorrect argument type to variable 'join_buffer_space_limit'
|
||||
set global join_buffer_space_limit=0;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect join_buffer_space_limit value: '0'
|
||||
select @@global.join_buffer_space_limit;
|
||||
@@global.join_buffer_space_limit
|
||||
2048
|
||||
set global join_buffer_space_limit=4095;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect join_buffer_space_limit value: '4095'
|
||||
select @@global.join_buffer_space_limit;
|
||||
@@global.join_buffer_space_limit
|
||||
2048
|
||||
set session join_buffer_space_limit=cast(-1 as unsigned int);
|
||||
Warnings:
|
||||
Warning 1105 Cast to unsigned converted negative integer to it's positive complement
|
||||
Warning 1292 Truncated incorrect join_buffer_space_limit value: '18446744073709551615'
|
||||
select @@session.join_buffer_space_limit;
|
||||
@@session.join_buffer_space_limit
|
||||
18446744073709549568
|
||||
SET @@global.join_buffer_space_limit = @start_global_value;
|
21
mysql-test/suite/sys_vars/r/myisam_block_size_basic.result
Normal file
21
mysql-test/suite/sys_vars/r/myisam_block_size_basic.result
Normal file
@@ -0,0 +1,21 @@
|
||||
select @@global.myisam_block_size;
|
||||
@@global.myisam_block_size
|
||||
1024
|
||||
select @@session.myisam_block_size;
|
||||
ERROR HY000: Variable 'myisam_block_size' is a GLOBAL variable
|
||||
show global variables like 'myisam_block_size';
|
||||
Variable_name Value
|
||||
myisam_block_size 1024
|
||||
show session variables like 'myisam_block_size';
|
||||
Variable_name Value
|
||||
myisam_block_size 1024
|
||||
select * from information_schema.global_variables where variable_name='myisam_block_size';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
MYISAM_BLOCK_SIZE 1024
|
||||
select * from information_schema.session_variables where variable_name='myisam_block_size';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
MYISAM_BLOCK_SIZE 1024
|
||||
set global myisam_block_size=1;
|
||||
ERROR HY000: Variable 'myisam_block_size' is a read only variable
|
||||
set session myisam_block_size=1;
|
||||
ERROR HY000: Variable 'myisam_block_size' is a read only variable
|
@@ -0,0 +1,44 @@
|
||||
SET @start_global_value = @@global.progress_report_time;
|
||||
select @@global.progress_report_time;
|
||||
@@global.progress_report_time
|
||||
56
|
||||
select @@session.progress_report_time;
|
||||
@@session.progress_report_time
|
||||
56
|
||||
show global variables like 'progress_report_time';
|
||||
Variable_name Value
|
||||
progress_report_time 56
|
||||
show session variables like 'progress_report_time';
|
||||
Variable_name Value
|
||||
progress_report_time 56
|
||||
select * from information_schema.global_variables where variable_name='progress_report_time';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PROGRESS_REPORT_TIME 56
|
||||
select * from information_schema.session_variables where variable_name='progress_report_time';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PROGRESS_REPORT_TIME 56
|
||||
set global progress_report_time=10;
|
||||
select @@global.progress_report_time;
|
||||
@@global.progress_report_time
|
||||
10
|
||||
set session progress_report_time=10;
|
||||
select @@session.progress_report_time;
|
||||
@@session.progress_report_time
|
||||
10
|
||||
set global progress_report_time=1.1;
|
||||
ERROR 42000: Incorrect argument type to variable 'progress_report_time'
|
||||
set session progress_report_time=1e1;
|
||||
ERROR 42000: Incorrect argument type to variable 'progress_report_time'
|
||||
set global progress_report_time="foo";
|
||||
ERROR 42000: Incorrect argument type to variable 'progress_report_time'
|
||||
set global progress_report_time=0;
|
||||
select @@global.progress_report_time;
|
||||
@@global.progress_report_time
|
||||
0
|
||||
set session progress_report_time=cast(-1 as unsigned int);
|
||||
Warnings:
|
||||
Warning 1105 Cast to unsigned converted negative integer to it's positive complement
|
||||
select @@session.progress_report_time;
|
||||
@@session.progress_report_time
|
||||
18446744073709551615
|
||||
SET @@global.progress_report_time = @start_global_value;
|
@@ -0,0 +1,39 @@
|
||||
SET @start_global_value = @@global.query_cache_strip_comments;
|
||||
select @@global.query_cache_strip_comments;
|
||||
@@global.query_cache_strip_comments
|
||||
0
|
||||
select @@session.query_cache_strip_comments;
|
||||
ERROR HY000: Variable 'query_cache_strip_comments' is a GLOBAL variable
|
||||
show global variables like 'query_cache_strip_comments';
|
||||
Variable_name Value
|
||||
query_cache_strip_comments OFF
|
||||
show session variables like 'query_cache_strip_comments';
|
||||
Variable_name Value
|
||||
query_cache_strip_comments OFF
|
||||
select * from information_schema.global_variables where variable_name='query_cache_strip_comments';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
QUERY_CACHE_STRIP_COMMENTS OFF
|
||||
select * from information_schema.session_variables where variable_name='query_cache_strip_comments';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
QUERY_CACHE_STRIP_COMMENTS OFF
|
||||
set global query_cache_strip_comments=ON;
|
||||
select @@global.query_cache_strip_comments;
|
||||
@@global.query_cache_strip_comments
|
||||
1
|
||||
set global query_cache_strip_comments=OFF;
|
||||
select @@global.query_cache_strip_comments;
|
||||
@@global.query_cache_strip_comments
|
||||
0
|
||||
set global query_cache_strip_comments=1;
|
||||
select @@global.query_cache_strip_comments;
|
||||
@@global.query_cache_strip_comments
|
||||
1
|
||||
set session query_cache_strip_comments=1;
|
||||
ERROR HY000: Variable 'query_cache_strip_comments' is a GLOBAL variable and should be set with SET GLOBAL
|
||||
set global query_cache_strip_comments=1.1;
|
||||
ERROR 42000: Incorrect argument type to variable 'query_cache_strip_comments'
|
||||
set global query_cache_strip_comments=1e1;
|
||||
ERROR 42000: Incorrect argument type to variable 'query_cache_strip_comments'
|
||||
set global query_cache_strip_comments="foo";
|
||||
ERROR 42000: Variable 'query_cache_strip_comments' can't be set to the value of 'foo'
|
||||
SET @@global.query_cache_strip_comments = @start_global_value;
|
@@ -0,0 +1,21 @@
|
||||
select @@global.replicate_annotate_rows_events;
|
||||
@@global.replicate_annotate_rows_events
|
||||
0
|
||||
select @@session.replicate_annotate_rows_events;
|
||||
ERROR HY000: Variable 'replicate_annotate_rows_events' is a GLOBAL variable
|
||||
show global variables like 'replicate_annotate_rows_events';
|
||||
Variable_name Value
|
||||
replicate_annotate_rows_events OFF
|
||||
show session variables like 'replicate_annotate_rows_events';
|
||||
Variable_name Value
|
||||
replicate_annotate_rows_events OFF
|
||||
select * from information_schema.global_variables where variable_name='replicate_annotate_rows_events';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
REPLICATE_ANNOTATE_ROWS_EVENTS OFF
|
||||
select * from information_schema.session_variables where variable_name='replicate_annotate_rows_events';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
REPLICATE_ANNOTATE_ROWS_EVENTS OFF
|
||||
set global replicate_annotate_rows_events=1;
|
||||
ERROR HY000: Variable 'replicate_annotate_rows_events' is a read only variable
|
||||
set session replicate_annotate_rows_events=1;
|
||||
ERROR HY000: Variable 'replicate_annotate_rows_events' is a read only variable
|
21
mysql-test/suite/sys_vars/r/thread_alarm_basic.result
Normal file
21
mysql-test/suite/sys_vars/r/thread_alarm_basic.result
Normal file
@@ -0,0 +1,21 @@
|
||||
select @@global.thread_alarm;
|
||||
@@global.thread_alarm
|
||||
1
|
||||
select @@session.thread_alarm;
|
||||
ERROR HY000: Variable 'thread_alarm' is a GLOBAL variable
|
||||
show global variables like 'thread_alarm';
|
||||
Variable_name Value
|
||||
thread_alarm ON
|
||||
show session variables like 'thread_alarm';
|
||||
Variable_name Value
|
||||
thread_alarm ON
|
||||
select * from information_schema.global_variables where variable_name='thread_alarm';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
THREAD_ALARM ON
|
||||
select * from information_schema.session_variables where variable_name='thread_alarm';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
THREAD_ALARM ON
|
||||
set global thread_alarm=1;
|
||||
ERROR HY000: Variable 'thread_alarm' is a read only variable
|
||||
set session thread_alarm=1;
|
||||
ERROR HY000: Variable 'thread_alarm' is a read only variable
|
Reference in New Issue
Block a user