summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorvva@eagle.mysql.r18.ru <>2003-10-16 11:33:44 -0400
committervva@eagle.mysql.r18.ru <>2003-10-16 11:33:44 -0400
commitc74da8bbd76d59379dce42f9537636e72682c989 (patch)
tree29d88a3efe7384330568f6370cd931e9f73e1adc /mysql-test
parent6ad94a6d57add4103990d2b3a2b7e6dd0bc9fccd (diff)
downloadmariadb-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.result2
-rw-r--r--mysql-test/t/create.test2
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;
#