1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-18650: Options deprecated in previous versions - storage_engine

Remove usage of deprecated variable storage_engine. It was deprecated in 5.5 but
it never issued a deprecation warning. Make it issue a warning in 10.5.1.

Replaced with default_storage_engine.
This commit is contained in:
Vicențiu Ciorbaru
2020-01-13 21:07:04 +02:00
parent 415797f1a6
commit 45bc7574fb
260 changed files with 802 additions and 768 deletions

View File

@ -258,9 +258,9 @@ select * from t1;
if('2002'='2002','Y','N')
Y
drop table if exists t1;
SET SESSION storage_engine="heap";
SELECT @@storage_engine;
@@storage_engine
SET SESSION default_storage_engine="heap";
SELECT @@default_storage_engine;
@@default_storage_engine
MEMORY
CREATE TABLE t1 (a int not null);
show create table t1;
@ -269,10 +269,10 @@ t1 CREATE TABLE `t1` (
`a` int(11) NOT NULL
) ENGINE=MEMORY DEFAULT CHARSET=latin1
drop table t1;
SET SESSION storage_engine="gemini";
SET SESSION default_storage_engine="gemini";
ERROR 42000: Unknown storage engine 'gemini'
SELECT @@storage_engine;
@@storage_engine
SELECT @@default_storage_engine;
@@default_storage_engine
MEMORY
CREATE TABLE t1 (a int not null);
show create table t1;
@ -280,7 +280,7 @@ Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) NOT NULL
) ENGINE=MEMORY DEFAULT CHARSET=latin1
SET SESSION storage_engine=default;
SET SESSION default_storage_engine=default;
drop table t1;
create table t1 ( k1 varchar(2), k2 int, primary key(k1,k2));
insert into t1 values ("a", 1), ("b", 2);
@ -422,9 +422,9 @@ create temporary table t3 like t2;
ERROR HY000: Table 't2' was not locked with LOCK TABLES
unlock tables;
drop tables t1, t2;
SET SESSION storage_engine="heap";
SELECT @@storage_engine;
@@storage_engine
SET SESSION default_storage_engine="heap";
SELECT @@default_storage_engine;
@@default_storage_engine
MEMORY
CREATE TABLE t1 (a int not null);
show create table t1;
@ -433,10 +433,10 @@ t1 CREATE TABLE `t1` (
`a` int(11) NOT NULL
) ENGINE=MEMORY DEFAULT CHARSET=latin1
drop table t1;
SET SESSION storage_engine="gemini";
SET SESSION default_storage_engine="gemini";
ERROR 42000: Unknown storage engine 'gemini'
SELECT @@storage_engine;
@@storage_engine
SELECT @@default_storage_engine;
@@default_storage_engine
MEMORY
CREATE TABLE t1 (a int not null);
show create table t1;
@ -444,7 +444,7 @@ Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) NOT NULL
) ENGINE=MEMORY DEFAULT CHARSET=latin1
SET SESSION storage_engine=default;
SET SESSION default_storage_engine=default;
drop table t1;
create table t1(a int,b int,c int unsigned,d date,e char,f datetime,g time,h blob);
insert into t1(a)values(1);