mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
fixed sqlstate for ER_WRONG_INDEX_NAME
removed unnesessary code from create.test
This commit is contained in:
@ -159,3 +159,4 @@ ER_WARN_TOO_MANY_RECORDS, "01000", "",
|
|||||||
ER_WARN_NULL_TO_NOTNULL, "01000", "",
|
ER_WARN_NULL_TO_NOTNULL, "01000", "",
|
||||||
ER_WARN_DATA_OUT_OF_RANGE, "01000", "",
|
ER_WARN_DATA_OUT_OF_RANGE, "01000", "",
|
||||||
ER_WARN_DATA_TRUNCATED, "01000", "",
|
ER_WARN_DATA_TRUNCATED, "01000", "",
|
||||||
|
ER_WRONG_INDEX_NAME, "42000", "",
|
||||||
|
@ -70,10 +70,7 @@ ERROR 42000: Incorrect table name ''
|
|||||||
create table t1 (`` int);
|
create table t1 (`` int);
|
||||||
ERROR 42000: Incorrect column name ''
|
ERROR 42000: Incorrect column name ''
|
||||||
create table t1 (i int, index `` (i));
|
create table t1 (i int, index `` (i));
|
||||||
ERROR HY000: Incorrect index name ''
|
ERROR 42000: Incorrect index name ''
|
||||||
drop table if exists t1;
|
|
||||||
Warnings:
|
|
||||||
Note 1051 Unknown table 't1'
|
|
||||||
create table t1 (a int auto_increment not null primary key, B CHAR(20));
|
create table t1 (a int auto_increment not null primary key, B CHAR(20));
|
||||||
insert into t1 (b) values ("hello"),("my"),("world");
|
insert into t1 (b) values ("hello"),("my"),("world");
|
||||||
create table t2 (key (b)) select * from t1;
|
create table t2 (key (b)) select * from t1;
|
||||||
|
@ -74,7 +74,6 @@ drop table if exists ``;
|
|||||||
create table t1 (`` int);
|
create table t1 (`` int);
|
||||||
--error 1279
|
--error 1279
|
||||||
create table t1 (i int, index `` (i));
|
create table t1 (i int, index `` (i));
|
||||||
drop table if exists t1;
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Test of CREATE ... SELECT with indexes
|
# Test of CREATE ... SELECT with indexes
|
||||||
|
Reference in New Issue
Block a user