mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Bug#6877 MySQL should give an error if the requested table type is not available
Implement new SQL mode - NO_ENGINE_SUBSTITUTION
This commit is contained in:
@ -189,4 +189,24 @@ SET @@SQL_MODE='';
|
||||
SELECT 'a\\b', 'a\\\"b', 'a''\\b', 'a''\\\"b';
|
||||
SELECT "a\\b", "a\\\'b", "a""\\b", "a""\\\'b";
|
||||
|
||||
|
||||
#
|
||||
# Bug#6877: MySQL should give an error if the requested table type
|
||||
# is not available
|
||||
#
|
||||
|
||||
set session sql_mode = 'NO_ENGINE_SUBSTITUTION';
|
||||
--error 1289
|
||||
create table t1 (a int) engine=isam;
|
||||
--error 1146
|
||||
show create table t1;
|
||||
drop table if exists t1;
|
||||
|
||||
# for comparison, lets see the warnings...
|
||||
set session sql_mode = '';
|
||||
create table t1 (a int) engine=isam;
|
||||
show create table t1;
|
||||
drop table t1;
|
||||
|
||||
|
||||
SET @@SQL_MODE=@OLD_SQL_MODE;
|
||||
|
Reference in New Issue
Block a user