mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 22:12:30 +01:00
127 lines
4.7 KiB
Text
127 lines
4.7 KiB
Text
SET @start_global_value = @@global.slave_net_timeout;
|
|
SELECT @start_global_value;
|
|
@start_global_value
|
|
3600
|
|
'#--------------------FN_DYNVARS_146_01-------------------------#'
|
|
SET @@global.slave_net_timeout = 500000;
|
|
SET @@global.slave_net_timeout = DEFAULT;
|
|
SELECT @@global.slave_net_timeout;
|
|
@@global.slave_net_timeout
|
|
3600
|
|
'#--------------------FN_DYNVARS_146_02-------------------------#'
|
|
SET @@global.slave_net_timeout = DEFAULT;
|
|
SELECT @@global.slave_net_timeout = 3600;
|
|
@@global.slave_net_timeout = 3600
|
|
1
|
|
'#--------------------FN_DYNVARS_146_03-------------------------#'
|
|
SET @@global.slave_net_timeout = 0;
|
|
Warnings:
|
|
Warning 1292 Truncated incorrect slave_net_timeout value: '0'
|
|
SELECT @@global.slave_net_timeout;
|
|
@@global.slave_net_timeout
|
|
1
|
|
SET @@global.slave_net_timeout = 1;
|
|
SELECT @@global.slave_net_timeout;
|
|
@@global.slave_net_timeout
|
|
1
|
|
SET @@global.slave_net_timeout = 15;
|
|
SELECT @@global.slave_net_timeout;
|
|
@@global.slave_net_timeout
|
|
15
|
|
SET @@global.slave_net_timeout = 1024;
|
|
SELECT @@global.slave_net_timeout;
|
|
@@global.slave_net_timeout
|
|
1024
|
|
SET @@global.slave_net_timeout = 3600+1;
|
|
SELECT @@global.slave_net_timeout;
|
|
@@global.slave_net_timeout
|
|
3601
|
|
SET @@global.slave_net_timeout = 2147483648;
|
|
Warnings:
|
|
Warning 1292 Truncated incorrect slave_net_timeout value: '2147483648'
|
|
SELECT @@global.slave_net_timeout;
|
|
@@global.slave_net_timeout
|
|
31536000
|
|
SET @@global.slave_net_timeout = 2147483648*2-1;
|
|
Warnings:
|
|
Warning 1292 Truncated incorrect slave_net_timeout value: '4294967295'
|
|
SELECT @@global.slave_net_timeout;
|
|
@@global.slave_net_timeout
|
|
31536000
|
|
'#--------------------FN_DYNVARS_146_04-------------------------#'
|
|
SET @@slave_net_timeout = 2;
|
|
ERROR HY000: Variable 'slave_net_timeout' is a GLOBAL variable and should be set with SET GLOBAL
|
|
SET @@session.slave_net_timeout = 3;
|
|
ERROR HY000: Variable 'slave_net_timeout' is a GLOBAL variable and should be set with SET GLOBAL
|
|
SET @@local.slave_net_timeout = 4;
|
|
ERROR HY000: Variable 'slave_net_timeout' is a GLOBAL variable and should be set with SET GLOBAL
|
|
'#------------------FN_DYNVARS_146_05-----------------------#'
|
|
SET @@global.slave_net_timeout = -1;
|
|
Warnings:
|
|
Warning 1292 Truncated incorrect slave_net_timeout value: '0'
|
|
SELECT @@global.slave_net_timeout;
|
|
@@global.slave_net_timeout
|
|
1
|
|
SET @@global.slave_net_timeout = -2147483648;
|
|
Warnings:
|
|
Warning 1292 Truncated incorrect slave_net_timeout value: '0'
|
|
SELECT @@global.slave_net_timeout;
|
|
@@global.slave_net_timeout
|
|
1
|
|
SET @@global.slave_net_timeout = 2147483649*2;
|
|
Warnings:
|
|
Warning 1292 Truncated incorrect slave_net_timeout value: '4294967298'
|
|
SELECT @@global.slave_net_timeout;
|
|
@@global.slave_net_timeout
|
|
31536000
|
|
SET @@global.slave_net_timeout = 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.slave_net_timeout = 100s;
|
|
ERROR 42000: Incorrect argument type to variable 'slave_net_timeout'
|
|
SET @@global.slave_net_timeout = 7483649.56;
|
|
ERROR 42000: Incorrect argument type to variable 'slave_net_timeout'
|
|
SET @@global.slave_net_timeout = 0.6;
|
|
ERROR 42000: Incorrect argument type to variable 'slave_net_timeout'
|
|
'Bug# 34877: Invalid Values are coming in variable on assigning valid values';
|
|
'#------------------FN_DYNVARS_146_06-----------------------#'
|
|
SET @@global.slave_net_timeout = 3000;
|
|
SELECT @@global.slave_net_timeout = VARIABLE_VALUE
|
|
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
|
WHERE VARIABLE_NAME='slave_net_timeout';
|
|
@@global.slave_net_timeout = VARIABLE_VALUE
|
|
1
|
|
'#------------------FN_DYNVARS_146_07-----------------------#'
|
|
SELECT count(VARIABLE_VALUE)
|
|
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
|
WHERE VARIABLE_NAME='slave_net_timeout';
|
|
count(VARIABLE_VALUE)
|
|
1
|
|
'#------------------FN_DYNVARS_146_08-----------------------#'
|
|
SET @@global.slave_net_timeout = TRUE;
|
|
SELECT @@global.slave_net_timeout;
|
|
@@global.slave_net_timeout
|
|
1
|
|
SET @@global.slave_net_timeout = FALSE;
|
|
Warnings:
|
|
Warning 1292 Truncated incorrect slave_net_timeout value: '0'
|
|
SELECT @@global.slave_net_timeout;
|
|
@@global.slave_net_timeout
|
|
1
|
|
'#---------------------FN_DYNVARS_001_09----------------------#'
|
|
SET @@global.slave_net_timeout = 60*60;
|
|
SELECT @@slave_net_timeout = @@global.slave_net_timeout;
|
|
@@slave_net_timeout = @@global.slave_net_timeout
|
|
1
|
|
'#---------------------FN_DYNVARS_001_10----------------------#'
|
|
SET slave_net_timeout = 2048;
|
|
ERROR HY000: Variable 'slave_net_timeout' is a GLOBAL variable and should be set with SET GLOBAL
|
|
SELECT slave_net_timeout;
|
|
ERROR 42S22: Unknown column 'slave_net_timeout' in 'field list'
|
|
SELECT @@slave_net_timeout;
|
|
@@slave_net_timeout
|
|
3600
|
|
SET global slave_net_timeout = 99;
|
|
SET @@global.slave_net_timeout = @start_global_value;
|
|
SELECT @@global.slave_net_timeout;
|
|
@@global.slave_net_timeout
|
|
3600
|