mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge of compatibility fixes
Fixed failing tests in sys_vars as we have now stricter checking of setting of variables. mysql-test/suite/sys_vars/r/innodb_adaptive_flushing_basic.result: One can now only assign 0 or 1 to boolean variables mysql-test/suite/sys_vars/r/innodb_adaptive_hash_index_basic.result: One can now only assign 0 or 1 to boolean variables mysql-test/suite/sys_vars/r/innodb_large_prefix_basic.result: One can now only assign 0 or 1 to boolean variables mysql-test/suite/sys_vars/r/innodb_random_read_ahead_basic.result: One can now only assign 0 or 1 to boolean variables mysql-test/suite/sys_vars/r/innodb_stats_on_metadata_basic.result: One can now only assign 0 or 1 to boolean variables mysql-test/suite/sys_vars/r/innodb_strict_mode_basic.result: One can now only assign 0 or 1 to boolean variables mysql-test/suite/sys_vars/r/innodb_support_xa_basic.result: One can now only assign 0 or 1 to boolean variables mysql-test/suite/sys_vars/r/innodb_table_locks_basic.result: One can now only assign 0 or 1 to boolean variables mysql-test/suite/sys_vars/r/rpl_semi_sync_master_enabled_basic.result: One can now only assign 0 or 1 to boolean variables mysql-test/suite/sys_vars/r/rpl_semi_sync_slave_enabled_basic.result: One can now only assign 0 or 1 to boolean variables mysql-test/suite/sys_vars/t/innodb_adaptive_flushing_basic.test: One can now only assign 0 or 1 to boolean variables mysql-test/suite/sys_vars/t/innodb_adaptive_hash_index_basic.test: One can now only assign 0 or 1 to boolean variables mysql-test/suite/sys_vars/t/innodb_large_prefix_basic.test: One can now only assign 0 or 1 to boolean variables mysql-test/suite/sys_vars/t/innodb_random_read_ahead_basic.test: One can now only assign 0 or 1 to boolean variables mysql-test/suite/sys_vars/t/innodb_stats_on_metadata_basic.test: One can now only assign 0 or 1 to boolean variables mysql-test/suite/sys_vars/t/innodb_strict_mode_basic.test: One can now only assign 0 or 1 to boolean variables mysql-test/suite/sys_vars/t/innodb_support_xa_basic.test: One can now only assign 0 or 1 to boolean variables mysql-test/suite/sys_vars/t/innodb_table_locks_basic.test: One can now only assign 0 or 1 to boolean variables mysys/my_getsystime.c: Merge + fixed bug that __NR_clock_gettime didn't work in 5.5
This commit is contained in:
@ -73,8 +73,8 @@ set global innodb_adaptive_flushing=1e1;
|
||||
ERROR 42000: Incorrect argument type to variable 'innodb_adaptive_flushing'
|
||||
set global innodb_adaptive_flushing=2;
|
||||
ERROR 42000: Variable 'innodb_adaptive_flushing' can't be set to the value of '2'
|
||||
NOTE: The following should fail with ER_WRONG_VALUE_FOR_VAR (BUG#50643)
|
||||
set global innodb_adaptive_flushing=-3;
|
||||
ERROR 42000: Variable 'innodb_adaptive_flushing' can't be set to the value of '-3'
|
||||
select @@global.innodb_adaptive_flushing;
|
||||
@@global.innodb_adaptive_flushing
|
||||
1
|
||||
|
@ -73,8 +73,8 @@ set global innodb_adaptive_hash_index=1e1;
|
||||
ERROR 42000: Incorrect argument type to variable 'innodb_adaptive_hash_index'
|
||||
set global innodb_adaptive_hash_index=2;
|
||||
ERROR 42000: Variable 'innodb_adaptive_hash_index' can't be set to the value of '2'
|
||||
NOTE: The following should fail with ER_WRONG_VALUE_FOR_VAR (BUG#50643)
|
||||
set global innodb_adaptive_hash_index=-3;
|
||||
ERROR 42000: Variable 'innodb_adaptive_hash_index' can't be set to the value of '-3'
|
||||
select @@global.innodb_adaptive_hash_index;
|
||||
@@global.innodb_adaptive_hash_index
|
||||
1
|
||||
|
@ -73,8 +73,8 @@ set global innodb_large_prefix=1e1;
|
||||
ERROR 42000: Incorrect argument type to variable 'innodb_large_prefix'
|
||||
set global innodb_large_prefix=2;
|
||||
ERROR 42000: Variable 'innodb_large_prefix' can't be set to the value of '2'
|
||||
NOTE: The following should fail with ER_WRONG_VALUE_FOR_VAR (BUG#50643)
|
||||
set global innodb_large_prefix=-3;
|
||||
ERROR 42000: Variable 'innodb_large_prefix' can't be set to the value of '-3'
|
||||
select @@global.innodb_large_prefix;
|
||||
@@global.innodb_large_prefix
|
||||
1
|
||||
|
@ -73,17 +73,17 @@ set global innodb_random_read_ahead=1e1;
|
||||
ERROR 42000: Incorrect argument type to variable 'innodb_random_read_ahead'
|
||||
set global innodb_random_read_ahead=2;
|
||||
ERROR 42000: Variable 'innodb_random_read_ahead' can't be set to the value of '2'
|
||||
NOTE: The following should fail with ER_WRONG_VALUE_FOR_VAR (BUG#50643)
|
||||
set global innodb_random_read_ahead=-3;
|
||||
ERROR 42000: Variable 'innodb_random_read_ahead' can't be set to the value of '-3'
|
||||
select @@global.innodb_random_read_ahead;
|
||||
@@global.innodb_random_read_ahead
|
||||
1
|
||||
0
|
||||
select * from information_schema.global_variables where variable_name='innodb_random_read_ahead';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
INNODB_RANDOM_READ_AHEAD ON
|
||||
INNODB_RANDOM_READ_AHEAD OFF
|
||||
select * from information_schema.session_variables where variable_name='innodb_random_read_ahead';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
INNODB_RANDOM_READ_AHEAD ON
|
||||
INNODB_RANDOM_READ_AHEAD OFF
|
||||
set global innodb_random_read_ahead='AUTO';
|
||||
ERROR 42000: Variable 'innodb_random_read_ahead' can't be set to the value of 'AUTO'
|
||||
SET @@global.innodb_random_read_ahead = @start_global_value;
|
||||
|
@ -73,8 +73,8 @@ set global innodb_stats_on_metadata=1e1;
|
||||
ERROR 42000: Incorrect argument type to variable 'innodb_stats_on_metadata'
|
||||
set global innodb_stats_on_metadata=2;
|
||||
ERROR 42000: Variable 'innodb_stats_on_metadata' can't be set to the value of '2'
|
||||
NOTE: The following should fail with ER_WRONG_VALUE_FOR_VAR (BUG#50643)
|
||||
set global innodb_stats_on_metadata=-3;
|
||||
ERROR 42000: Variable 'innodb_stats_on_metadata' can't be set to the value of '-3'
|
||||
select @@global.innodb_stats_on_metadata;
|
||||
@@global.innodb_stats_on_metadata
|
||||
1
|
||||
|
@ -99,9 +99,10 @@ set global innodb_strict_mode='AUTO';
|
||||
ERROR 42000: Variable 'innodb_strict_mode' can't be set to the value of 'AUTO'
|
||||
set session innodb_strict_mode='AUTO';
|
||||
ERROR 42000: Variable 'innodb_strict_mode' can't be set to the value of 'AUTO'
|
||||
NOTE: The following should fail with ER_WRONG_VALUE_FOR_VAR (BUG#50643)
|
||||
set global innodb_strict_mode=-3;
|
||||
ERROR 42000: Variable 'innodb_strict_mode' can't be set to the value of '-3'
|
||||
set session innodb_strict_mode=-7;
|
||||
ERROR 42000: Variable 'innodb_strict_mode' can't be set to the value of '-7'
|
||||
select @@global.innodb_strict_mode;
|
||||
@@global.innodb_strict_mode
|
||||
1
|
||||
|
@ -73,6 +73,7 @@ SELECT @@session.innodb_support_xa;
|
||||
SET @@session.innodb_support_xa = <20>FF;
|
||||
ERROR 42000: Variable 'innodb_support_xa' can't be set to the value of '<27>FF'
|
||||
SET @@global.innodb_support_xa = -1;
|
||||
ERROR 42000: Variable 'innodb_support_xa' can't be set to the value of '-1'
|
||||
SELECT @@global.innodb_support_xa;
|
||||
@@global.innodb_support_xa
|
||||
1
|
||||
|
@ -55,6 +55,7 @@ SELECT @@global.innodb_table_locks;
|
||||
1
|
||||
'#--------------------FN_DYNVARS_046_04-------------------------#'
|
||||
SET @@session.innodb_table_locks = -6;
|
||||
ERROR 42000: Variable 'innodb_table_locks' can't be set to the value of '-6'
|
||||
SET @@session.innodb_table_locks = 1.6;
|
||||
ERROR 42000: Incorrect argument type to variable 'innodb_table_locks'
|
||||
SET @@session.innodb_table_locks = "T";
|
||||
@ -72,6 +73,7 @@ SELECT @@session.innodb_table_locks;
|
||||
SET @@session.innodb_table_locks = <20>FF;
|
||||
ERROR 42000: Variable 'innodb_table_locks' can't be set to the value of '<27>FF'
|
||||
SET @@global.innodb_table_locks = -1;
|
||||
ERROR 42000: Variable 'innodb_table_locks' can't be set to the value of '-1'
|
||||
SET @@global.innodb_table_locks = 2;
|
||||
ERROR 42000: Variable 'innodb_table_locks' can't be set to the value of '2'
|
||||
SET @@global.innodb_table_locks = "T";
|
||||
|
@ -45,7 +45,7 @@ set session rpl_semi_sync_master_enabled=1;
|
||||
ERROR HY000: Variable 'rpl_semi_sync_master_enabled' is a GLOBAL variable and should be set with SET GLOBAL
|
||||
select @@global.rpl_semi_sync_master_enabled;
|
||||
@@global.rpl_semi_sync_master_enabled
|
||||
-1
|
||||
1
|
||||
select @@session.rpl_semi_sync_master_enabled;
|
||||
ERROR HY000: Variable 'rpl_semi_sync_master_enabled' is a GLOBAL variable
|
||||
show global variables like 'rpl_semi_sync_master_enabled';
|
||||
|
@ -45,7 +45,7 @@ set session rpl_semi_sync_slave_enabled=1;
|
||||
ERROR HY000: Variable 'rpl_semi_sync_slave_enabled' is a GLOBAL variable and should be set with SET GLOBAL
|
||||
select @@global.rpl_semi_sync_slave_enabled;
|
||||
@@global.rpl_semi_sync_slave_enabled
|
||||
-1
|
||||
1
|
||||
select @@session.rpl_semi_sync_slave_enabled;
|
||||
ERROR HY000: Variable 'rpl_semi_sync_slave_enabled' is a GLOBAL variable
|
||||
show global variables like 'rpl_semi_sync_slave_enabled';
|
||||
|
Reference in New Issue
Block a user