mariadb/mysql-test/r/delay_key_write_basic.result
unknown b00c536378 System variable tests delivered by Folio3 (see WL4288).
BitKeeper/etc/ignore:
  Added mysql-test/linux_sys_vars.inc mysql-test/load_sysvars.inc mysql-test/windows_sys_vars.inc to the ignore list
2008-04-10 15:14:28 +02:00

98 lines
3.6 KiB
Text

SET @start_value = @@global.delay_key_write;
SELECT @start_value;
@start_value
ON
'#--------------------FN_DYNVARS_023_01------------------------#'
SET @@global.delay_key_write = OFF;
SET @@global.delay_key_write = DEFAULT;
ERROR 42000: Variable 'delay_key_write' doesn't have a default value
'Bug # 34878: Documentation specifies a DEFAULT value of ON for variable but';
'its not supported';
SELECT @@global.delay_key_write;
@@global.delay_key_write
OFF
'#---------------------FN_DYNVARS_023_02-------------------------#'
SET @@global.delay_key_write = NULL;
ERROR 42000: Variable 'delay_key_write' can't be set to the value of 'NULL'
'#--------------------FN_DYNVARS_023_03------------------------#'
SET @@global.delay_key_write = ON;
SELECT @@global.delay_key_write;
@@global.delay_key_write
ON
SET @@global.delay_key_write = OFF;
SELECT @@global.delay_key_write;
@@global.delay_key_write
OFF
SET @@global.delay_key_write = ALL;
SELECT @@global.delay_key_write;
@@global.delay_key_write
ALL
'#--------------------FN_DYNVARS_023_04-------------------------#'
SET @@global.delay_key_write = 3;
ERROR 42000: Variable 'delay_key_write' can't be set to the value of '3'
SET @@global.delay_key_write = -1;
ERROR 42000: Variable 'delay_key_write' can't be set to the value of '-1'
SET @@global.delay_key_write = TRU;
ERROR 42000: Variable 'delay_key_write' can't be set to the value of 'TRU'
SET @@global.delay_key_write = ERROR;
ERROR 42000: Variable 'delay_key_write' can't be set to the value of 'ERROR'
SET @@global.delay_key_write = FALSE0;
ERROR 42000: Variable 'delay_key_write' can't be set to the value of 'FALSE0'
SET @@global.delay_key_write = ONN;
ERROR 42000: Variable 'delay_key_write' can't be set to the value of 'ONN'
SET @@global.delay_key_write = OF;
SELECT @@global.delay_key_write;
@@global.delay_key_write
OFF
'Bug# 34828: Variable is incorrectly accepting OF as a value'
SET @@global.delay_key_write = ' ';
ERROR 42000: Variable 'delay_key_write' can't be set to the value of ' '
SET @@global.delay_key_write = "";
ERROR 42000: Variable 'delay_key_write' can't be set to the value of ''
'#-------------------FN_DYNVARS_023_05----------------------------#'
SET @@delay_key_write = 0;
ERROR HY000: Variable 'delay_key_write' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@session.delay_key_write;
ERROR HY000: Variable 'delay_key_write' is a GLOBAL variable
'#----------------------FN_DYNVARS_023_06------------------------#'
SELECT @@delay_key_write = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='delay_key_write';
@@delay_key_write = VARIABLE_VALUE
1
'#---------------------FN_DYNVARS_023_07-------------------------#'
SET @@global.delay_key_write = 0;
SELECT @@global.delay_key_write;
@@global.delay_key_write
OFF
SET @@global.delay_key_write = 1;
SELECT @@global.delay_key_write;
@@global.delay_key_write
ON
SET @@global.delay_key_write = 2;
SELECT @@global.delay_key_write;
@@global.delay_key_write
ALL
'#---------------------FN_DYNVARS_023_08----------------------#'
SET @@global.delay_key_write = TRUE;
SELECT @@global.delay_key_write;
@@global.delay_key_write
ON
SET @@global.delay_key_write = FALSE;
SELECT @@global.delay_key_write;
@@global.delay_key_write
OFF
'#---------------------FN_DYNVARS_023_09----------------------#'
SET delay_key_write = ON;
ERROR HY000: Variable 'delay_key_write' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@delay_key_write;
@@delay_key_write
OFF
SET GLOBAL delay_key_write = OFF;
SELECT @@global.delay_key_write;
@@global.delay_key_write
OFF
SET @@global.delay_key_write = @start_value;
SELECT @@global.delay_key_write;
@@global.delay_key_write
ON