mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 22:12:30 +01:00
110 lines
4 KiB
Text
110 lines
4 KiB
Text
SET @start_global_value = @@global.rpl_recovery_rank;
|
|
SELECT @start_global_value;
|
|
@start_global_value
|
|
0
|
|
'#--------------------FN_DYNVARS_142_01-------------------------#'
|
|
SET @@global.rpl_recovery_rank = 500000;
|
|
SET @@global.rpl_recovery_rank = DEFAULT;
|
|
SELECT @@global.rpl_recovery_rank;
|
|
@@global.rpl_recovery_rank
|
|
0
|
|
'#--------------------FN_DYNVARS_142_02-------------------------#'
|
|
SET @@global.rpl_recovery_rank = 0;
|
|
SELECT @@global.rpl_recovery_rank;
|
|
@@global.rpl_recovery_rank
|
|
0
|
|
SET @@global.rpl_recovery_rank = 1024;
|
|
SELECT @@global.rpl_recovery_rank;
|
|
@@global.rpl_recovery_rank
|
|
1024
|
|
SET @@global.rpl_recovery_rank = 123456789;
|
|
SELECT @@global.rpl_recovery_rank;
|
|
@@global.rpl_recovery_rank
|
|
123456789
|
|
SET @@global.rpl_recovery_rank = 2147483648*2;
|
|
Warnings:
|
|
Warning 1292 Truncated incorrect rpl-recovery-rank value: '4294967296'
|
|
SELECT @@global.rpl_recovery_rank;
|
|
@@global.rpl_recovery_rank
|
|
4294967295
|
|
SET @@global.rpl_recovery_rank = 2147483648*1024;
|
|
Warnings:
|
|
Warning 1292 Truncated incorrect rpl-recovery-rank value: '2199023255552'
|
|
SELECT @@global.rpl_recovery_rank;
|
|
@@global.rpl_recovery_rank
|
|
4294967295
|
|
SELECT @@global.rpl_recovery_rank;
|
|
@@global.rpl_recovery_rank
|
|
4294967295
|
|
SET @@global.rpl_recovery_rank = 2147483648*2147483648;
|
|
Warnings:
|
|
Warning 1292 Truncated incorrect rpl-recovery-rank value: '4611686018427387904'
|
|
SELECT @@global.rpl_recovery_rank;
|
|
@@global.rpl_recovery_rank
|
|
4294967295
|
|
'#--------------------FN_DYNVARS_142_03-------------------------#'
|
|
SET @@rpl_recovery_rank = 2;
|
|
ERROR HY000: Variable 'rpl_recovery_rank' is a GLOBAL variable and should be set with SET GLOBAL
|
|
SET @@session.rpl_recovery_rank = 3;
|
|
ERROR HY000: Variable 'rpl_recovery_rank' is a GLOBAL variable and should be set with SET GLOBAL
|
|
SET @@local.rpl_recovery_rank = 4;
|
|
ERROR HY000: Variable 'rpl_recovery_rank' is a GLOBAL variable and should be set with SET GLOBAL
|
|
'#------------------FN_DYNVARS_142_04-----------------------#'
|
|
SET @@global.rpl_recovery_rank = -1;
|
|
SELECT @@global.rpl_recovery_rank;
|
|
@@global.rpl_recovery_rank
|
|
0
|
|
SET @@global.rpl_recovery_rank = -2147483648;
|
|
SELECT @@global.rpl_recovery_rank;
|
|
@@global.rpl_recovery_rank
|
|
0
|
|
SET @@global.rpl_recovery_rank = -2147483649;
|
|
SELECT @@global.rpl_recovery_rank;
|
|
@@global.rpl_recovery_rank
|
|
0
|
|
SET @@global.rpl_recovery_rank = 65530.34.;
|
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.' at line 1
|
|
SET @@global.rpl_recovery_rank = 2147483649.56;
|
|
ERROR 42000: Incorrect argument type to variable 'rpl_recovery_rank'
|
|
SET @@global.rpl_recovery_rank = 1G;
|
|
ERROR 42000: Incorrect argument type to variable 'rpl_recovery_rank'
|
|
'#------------------FN_DYNVARS_142_05-----------------------#'
|
|
SET @@global.rpl_recovery_rank = 3000;
|
|
SELECT @@global.rpl_recovery_rank = VARIABLE_VALUE
|
|
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
|
WHERE VARIABLE_NAME='rpl_recovery_rank';
|
|
@@global.rpl_recovery_rank = VARIABLE_VALUE
|
|
1
|
|
'#------------------FN_DYNVARS_142_06-----------------------#'
|
|
SELECT count(VARIABLE_VALUE)
|
|
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
|
WHERE VARIABLE_NAME='rpl_recovery_rank';
|
|
count(VARIABLE_VALUE)
|
|
1
|
|
'#------------------FN_DYNVARS_142_07-----------------------#'
|
|
SET @@global.rpl_recovery_rank = TRUE;
|
|
SELECT @@global.rpl_recovery_rank;
|
|
@@global.rpl_recovery_rank
|
|
1
|
|
SET @@global.rpl_recovery_rank = FALSE;
|
|
SELECT @@global.rpl_recovery_rank;
|
|
@@global.rpl_recovery_rank
|
|
0
|
|
'#---------------------FN_DYNVARS_001_08----------------------#'
|
|
SET @@global.rpl_recovery_rank = 512;
|
|
SELECT @@rpl_recovery_rank = @@global.rpl_recovery_rank;
|
|
@@rpl_recovery_rank = @@global.rpl_recovery_rank
|
|
1
|
|
'#---------------------FN_DYNVARS_001_09----------------------#'
|
|
SET rpl_recovery_rank = 2048;
|
|
ERROR HY000: Variable 'rpl_recovery_rank' is a GLOBAL variable and should be set with SET GLOBAL
|
|
SELECT rpl_recovery_rank;
|
|
ERROR 42S22: Unknown column 'rpl_recovery_rank' in 'field list'
|
|
SELECT @@rpl_recovery_rank;
|
|
@@rpl_recovery_rank
|
|
512
|
|
SET global rpl_recovery_rank = 64;
|
|
SET @@global.rpl_recovery_rank = @start_global_value;
|
|
SELECT @@global.rpl_recovery_rank;
|
|
@@global.rpl_recovery_rank
|
|
0
|