summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
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;
#