mirror of
https://github.com/MariaDB/server.git
synced 2025-05-05 16:59:35 +03:00
106 lines
3.8 KiB
Plaintext
106 lines
3.8 KiB
Plaintext
SET @start_global_value = @@global.storage_engine;
|
|
SET @start_session_value = @@session.storage_engine;
|
|
'#--------------------FN_DYNVARS_005_01-------------------------#'
|
|
SET @@global.storage_engine = INNODB;
|
|
SET @@global.storage_engine = DEFAULT;
|
|
SELECT @@global.storage_engine;
|
|
@@global.storage_engine
|
|
InnoDB
|
|
SET @@session.storage_engine = INNODB;
|
|
SET @@session.storage_engine = DEFAULT;
|
|
SELECT @@session.storage_engine;
|
|
@@session.storage_engine
|
|
InnoDB
|
|
'#--------------------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 = NULL;
|
|
ERROR 42000: Variable 'storage_engine' can't be set to the value of 'NULL'
|
|
SET @@global.storage_engine = -1024;
|
|
ERROR 42000: Incorrect argument type to variable 'storage_engine'
|
|
SET @@global.storage_engine = 65530.34;
|
|
ERROR 42000: Incorrect argument type to variable 'storage_engine'
|
|
SET @@global.storage_engine = FILE;
|
|
ERROR 42000: Unknown storage engine 'FILE'
|
|
SET @@session.storage_engine = 8199;
|
|
ERROR 42000: Incorrect argument type to variable 'storage_engine'
|
|
SET @@session.storage_engine = 65530.34;
|
|
ERROR 42000: Incorrect argument type to variable 'storage_engine'
|
|
SET @@session.storage_engine = RECORD;
|
|
ERROR 42000: Unknown storage 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 @@storage_engine = @start_global_value;
|
|
SET @@global.storage_engine = @start_global_value;
|
|
SET @@session.storage_engine = @start_session_value;
|