diff options
author | vva@eagle.mysql.r18.ru <> | 2003-10-16 11:33:44 -0400 |
---|---|---|
committer | vva@eagle.mysql.r18.ru <> | 2003-10-16 11:33:44 -0400 |
commit | c74da8bbd76d59379dce42f9537636e72682c989 (patch) | |
tree | 29d88a3efe7384330568f6370cd931e9f73e1adc /mysql-test | |
parent | 6ad94a6d57add4103990d2b3a2b7e6dd0bc9fccd (diff) | |
download | mariadb-git-c74da8bbd76d59379dce42f9537636e72682c989.tar.gz |
added checking for empty index name (fixed bug #1419)
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/create.result | 2 | ||||
-rw-r--r-- | mysql-test/t/create.test | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/r/create.result b/mysql-test/r/create.result index 90b163c8e19..143a897429e 100644 --- a/mysql-test/r/create.result +++ b/mysql-test/r/create.result @@ -69,6 +69,8 @@ drop table if exists ``; 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' diff --git a/mysql-test/t/create.test b/mysql-test/t/create.test index bc71c597270..4cde963ca4b 100644 --- a/mysql-test/t/create.test +++ b/mysql-test/t/create.test @@ -72,6 +72,8 @@ create table `` (a int); drop table if exists ``; --error 1166 create table t1 (`` int); +--error 1279 +create table t1 (i int, index `` (i)); drop table if exists t1; # |