2008-04-10 15:14:28 +02:00
|
|
|
SET @start_value = @@global.sync_frm;
|
|
|
|
SELECT @start_value;
|
|
|
|
@start_value
|
2008-10-10 18:28:41 +03:00
|
|
|
VAL
|
2008-04-10 15:14:28 +02:00
|
|
|
'#--------------------FN_DYNVARS_169_01------------------------#'
|
|
|
|
SET @@global.sync_frm = FALSE;
|
|
|
|
SET @@global.sync_frm = DEFAULT;
|
|
|
|
SELECT @@global.sync_frm;
|
|
|
|
@@global.sync_frm
|
|
|
|
1
|
|
|
|
'#---------------------FN_DYNVARS_169_02-------------------------#'
|
|
|
|
SET @@global.sync_frm = DEFAULT;
|
|
|
|
SELECT @@global.sync_frm = TRUE;
|
|
|
|
@@global.sync_frm = TRUE
|
|
|
|
1
|
|
|
|
'#--------------------FN_DYNVARS_169_03------------------------#'
|
|
|
|
SET @@global.sync_frm = ON;
|
|
|
|
SELECT @@global.sync_frm;
|
|
|
|
@@global.sync_frm
|
|
|
|
1
|
|
|
|
SET @@global.sync_frm = OFF;
|
|
|
|
SELECT @@global.sync_frm;
|
|
|
|
@@global.sync_frm
|
|
|
|
0
|
|
|
|
SET @@global.sync_frm = 0;
|
|
|
|
SELECT @@global.sync_frm;
|
|
|
|
@@global.sync_frm
|
|
|
|
0
|
|
|
|
SET @@global.sync_frm = 1;
|
|
|
|
SELECT @@global.sync_frm;
|
|
|
|
@@global.sync_frm
|
|
|
|
1
|
|
|
|
SET @@global.sync_frm = TRUE;
|
|
|
|
SELECT @@global.sync_frm;
|
|
|
|
@@global.sync_frm
|
|
|
|
1
|
|
|
|
SET @@global.sync_frm = FALSE;
|
|
|
|
SELECT @@global.sync_frm;
|
|
|
|
@@global.sync_frm
|
|
|
|
0
|
|
|
|
'#--------------------FN_DYNVARS_169_04-------------------------#'
|
|
|
|
SET @@global.sync_frm = 2;
|
|
|
|
ERROR 42000: Variable 'sync_frm' can't be set to the value of '2'
|
|
|
|
SET @@global.sync_frm = -1;
|
|
|
|
ERROR 42000: Variable 'sync_frm' can't be set to the value of '-1'
|
|
|
|
SET @@global.sync_frm = TRUEF;
|
|
|
|
ERROR 42000: Variable 'sync_frm' can't be set to the value of 'TRUEF'
|
|
|
|
SET @@global.sync_frm = TRUE_F;
|
|
|
|
ERROR 42000: Variable 'sync_frm' can't be set to the value of 'TRUE_F'
|
|
|
|
SET @@global.sync_frm = FALSE0;
|
|
|
|
ERROR 42000: Variable 'sync_frm' can't be set to the value of 'FALSE0'
|
|
|
|
SET @@global.sync_frm = OON;
|
|
|
|
ERROR 42000: Variable 'sync_frm' can't be set to the value of 'OON'
|
|
|
|
SET @@global.sync_frm = ONN;
|
|
|
|
ERROR 42000: Variable 'sync_frm' can't be set to the value of 'ONN'
|
|
|
|
SET @@global.sync_frm = OOFF;
|
|
|
|
ERROR 42000: Variable 'sync_frm' can't be set to the value of 'OOFF'
|
|
|
|
SET @@global.sync_frm = 0FF;
|
|
|
|
ERROR 42000: Variable 'sync_frm' can't be set to the value of '0FF'
|
|
|
|
SET @@global.sync_frm = ' ';
|
|
|
|
ERROR 42000: Variable 'sync_frm' can't be set to the value of ' '
|
|
|
|
SET @@global.sync_frm = " ";
|
|
|
|
ERROR 42000: Variable 'sync_frm' can't be set to the value of ' '
|
|
|
|
SET @@global.sync_frm = '';
|
|
|
|
ERROR 42000: Variable 'sync_frm' can't be set to the value of ''
|
|
|
|
'#-------------------FN_DYNVARS_169_05----------------------------#'
|
|
|
|
SET @@session.sync_frm = 1;
|
|
|
|
ERROR HY000: Variable 'sync_frm' is a GLOBAL variable and should be set with SET GLOBAL
|
|
|
|
SELECT @@session.sync_frm;
|
|
|
|
ERROR HY000: Variable 'sync_frm' is a GLOBAL variable
|
|
|
|
'#----------------------FN_DYNVARS_169_06------------------------#'
|
2009-10-09 15:34:07 +02:00
|
|
|
SELECT IF(@@global.sync_frm, "ON", "OFF") = VARIABLE_VALUE
|
2008-04-10 15:14:28 +02:00
|
|
|
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
|
|
|
WHERE VARIABLE_NAME='sync_frm';
|
2009-10-09 15:34:07 +02:00
|
|
|
IF(@@global.sync_frm, "ON", "OFF") = VARIABLE_VALUE
|
2008-04-10 15:14:28 +02:00
|
|
|
1
|
|
|
|
'#---------------------FN_DYNVARS_169_07----------------------#'
|
|
|
|
SET @@global.sync_frm = 1;
|
|
|
|
SELECT @@sync_frm = @@global.sync_frm;
|
|
|
|
@@sync_frm = @@global.sync_frm
|
|
|
|
1
|
|
|
|
'#---------------------FN_DYNVARS_169_08----------------------#'
|
|
|
|
SET sync_frm = 1;
|
|
|
|
ERROR HY000: Variable 'sync_frm' is a GLOBAL variable and should be set with SET GLOBAL
|
|
|
|
SELECT @@sync_frm;
|
|
|
|
@@sync_frm
|
|
|
|
1
|
|
|
|
SELECT global.sync_frm;
|
|
|
|
ERROR 42S02: Unknown table 'global' in field list
|
|
|
|
SELECT sync_frm = @@session.sync_frm;
|
|
|
|
ERROR 42S22: Unknown column 'sync_frm' in 'field list'
|
|
|
|
SET @@global.sync_frm = @start_value;
|
|
|
|
SELECT @@global.sync_frm;
|
|
|
|
@@global.sync_frm
|
2008-10-10 18:28:41 +03:00
|
|
|
VAL
|