Commit 0d28ff84 authored by unknown's avatar unknown

fixed sqlstate for ER_WRONG_INDEX_NAME

removed unnesessary code from create.test


include/sql_state.h:
  added sqlstate for ER_WRONG_INDEX_NAME
mysql-test/r/create.result:
  changed sqlstate for ER_WRONG_INDEX_NAME
  remove unnesesary warning
mysql-test/t/create.test:
  remove unnesessary drop table
parent ff50211d
......@@ -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", "",
......@@ -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;
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment