mariadb/mysql-test/r/storage_engine_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

115 lines
4.1 KiB
Text

SET @start_global_value = @@global.storage_engine;
SELECT @start_global_value;
@start_global_value
MyISAM
SET @start_session_value = @@session.storage_engine;
SELECT @start_session_value;
@start_session_value
MyISAM
'#--------------------FN_DYNVARS_005_01-------------------------#'
SET @@global.storage_engine = MYISAM;
SET @@global.storage_engine = DEFAULT;
ERROR 42000: Variable 'storage_engine' doesn't have a default value
SELECT @@global.storage_engine;
@@global.storage_engine
MyISAM
SET @@session.storage_engine = INNODB;
SET @@session.storage_engine = DEFAULT;
SELECT @@session.storage_engine;
@@session.storage_engine
MyISAM
'#--------------------FN_DYNVARS_005_02-------------------------#'
SET @@global.storage_engine = MYISAM;
SELECT @@global.storage_engine;
@@global.storage_engine
MyISAM
SET @@global.storage_engine = MERGE;
SELECT @@global.storage_engine;
@@global.storage_engine
MRG_MYISAM
SET @@global.storage_engine = MEMORY;
SELECT @@global.storage_engine;
@@global.storage_engine
MEMORY
SET @@global.storage_engine = INNODB;
SELECT @@global.storage_engine;
@@global.storage_engine
InnoDB
'#--------------------FN_DYNVARS_005_03-------------------------#'
SET @@session.storage_engine = MYISAM;
SELECT @@session.storage_engine;
@@session.storage_engine
MyISAM
SET @@session.storage_engine = MERGE;
SELECT @@session.storage_engine;
@@session.storage_engine
MRG_MYISAM
SET @@session.storage_engine = MEMORY;
SELECT @@session.storage_engine;
@@session.storage_engine
MEMORY
SET @@session.storage_engine = INNODB;
SELECT @@session.storage_engine;
@@session.storage_engine
InnoDB
'#------------------FN_DYNVARS_005_04-----------------------#'
SET @@global.storage_engine = 8199;
ERROR 42000: Incorrect argument type to variable 'storage_engine'
SET @@global.storage_engine = -1024;
ERROR 42000: Incorrect argument type to variable 'storage_engine'
SET @@global.storage_engine = 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.storage_engine = FILE;
ERROR 42000: Unknown table engine 'FILE'
SET @@session.storage_engine = 8199;
ERROR 42000: Incorrect argument type to variable 'storage_engine'
SET @@session.storage_engine = 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 @@session.storage_engine = RECORD;
ERROR 42000: Unknown table engine 'RECORD'
'#------------------FN_DYNVARS_005_05-----------------------#'
SELECT @@global.storage_engine =
VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='storage_engine';
@@global.storage_engine =
VARIABLE_VALUE
1
'#------------------FN_DYNVARS_005_06-----------------------#'
SELECT @@session.storage_engine =
VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES
WHERE VARIABLE_NAME='storage_engine';
@@session.storage_engine =
VARIABLE_VALUE
1
'#------------------FN_DYNVARS_005_07-----------------------#'
SET @@global.storage_engine = TRUE;
ERROR 42000: Incorrect argument type to variable 'storage_engine'
SET @@global.storage_engine = FALSE;
ERROR 42000: Incorrect argument type to variable 'storage_engine'
'#---------------------FN_DYNVARS_001_8----------------------#'
SET @@storage_engine = MYISAM;
SELECT @@storage_engine = @@local.storage_engine;
@@storage_engine = @@local.storage_engine
1
SELECT @@local.storage_engine = @@session.storage_engine;
@@local.storage_engine = @@session.storage_engine
1
'#---------------------FN_DYNVARS_001_9----------------------#'
SET storage_engine = MEMORY;
SELECT @@storage_engine;
@@storage_engine
MEMORY
SELECT local.storage_engine;
ERROR 42S02: Unknown table 'local' in field list
SELECT session.storage_engine;
ERROR 42S02: Unknown table 'session' in field list
SELECT storage_engine = @@session.storage_engine;
ERROR 42S22: Unknown column 'storage_engine' in 'field list'
SET @@global.storage_engine = @start_global_value;
SELECT @@global.storage_engine;
@@global.storage_engine
MyISAM
SET @@session.storage_engine = @start_session_value;
SELECT @@session.storage_engine;
@@session.storage_engine
MyISAM