From 1692d2de15c15090f866d6b4ac12716e5d534f95 Mon Sep 17 00:00:00 2001 From: "vva@eagle.mysql.r18.ru" <> Date: Thu, 16 Oct 2003 16:15:45 -0400 Subject: [PATCH] fixed sqlstate for ER_WRONG_INDEX_NAME removed unnesessary code from create.test --- include/sql_state.h | 1 + mysql-test/r/create.result | 5 +---- mysql-test/t/create.test | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/include/sql_state.h b/include/sql_state.h index c0b7cf97ea5..222636d3bec 100644 --- a/include/sql_state.h +++ b/include/sql_state.h @@ -159,3 +159,4 @@ ER_WARN_TOO_MANY_RECORDS, "01000", "", ER_WARN_NULL_TO_NOTNULL, "01000", "", ER_WARN_DATA_OUT_OF_RANGE, "01000", "", ER_WARN_DATA_TRUNCATED, "01000", "", +ER_WRONG_INDEX_NAME, "42000", "", diff --git a/mysql-test/r/create.result b/mysql-test/r/create.result index 143a897429e..d61614180b3 100644 --- a/mysql-test/r/create.result +++ b/mysql-test/r/create.result @@ -70,10 +70,7 @@ ERROR 42000: Incorrect table name '' create table t1 (`` int); ERROR 42000: Incorrect column name '' create table t1 (i int, index `` (i)); -ERROR HY000: Incorrect index name '' -drop table if exists t1; -Warnings: -Note 1051 Unknown table 't1' +ERROR 42000: Incorrect index name '' create table t1 (a int auto_increment not null primary key, B CHAR(20)); insert into t1 (b) values ("hello"),("my"),("world"); create table t2 (key (b)) select * from t1; diff --git a/mysql-test/t/create.test b/mysql-test/t/create.test index 4cde963ca4b..059808161a3 100644 --- a/mysql-test/t/create.test +++ b/mysql-test/t/create.test @@ -74,7 +74,6 @@ drop table if exists ``; create table t1 (`` int); --error 1279 create table t1 (i int, index `` (i)); -drop table if exists t1; # # Test of CREATE ... SELECT with indexes