summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2003-03-16 16:30:54 +0200
committermonty@mashka.mysql.fi <>2003-03-16 16:30:54 +0200
commitba46c7289c3ce1517e595a37cef48ffb3c993bb0 (patch)
treef6d63b9728c1157c31c1f74bbe32bc1e50de79b8 /mysql-test
parent1573226e6958bbe678dd0293fb3361285cbd3ad9 (diff)
parentb879a40120c2b39c32f2312acc7cf286d030bd4d (diff)
downloadmariadb-git-ba46c7289c3ce1517e595a37cef48ffb3c993bb0.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-4.0
into mashka.mysql.fi:/home/my/mysql-4.0
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/create.result7
-rw-r--r--mysql-test/t/create.test8
2 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/r/create.result b/mysql-test/r/create.result
index c3083dbfb03..0cc98c38d49 100644
--- a/mysql-test/r/create.result
+++ b/mysql-test/r/create.result
@@ -58,6 +58,13 @@ a$1 $b c$
create table test_$1.test2$ (a int);
drop table test_$1.test2$;
drop database test_$1;
+create table `` (a int);
+Incorrect table name ''
+drop table if exists ``;
+Incorrect table name ''
+create table t1 (`` int);
+Incorrect column name ''
+drop table if exists t1;
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 bb0d6dc0d64..7d566cb89ac 100644
--- a/mysql-test/t/create.test
+++ b/mysql-test/t/create.test
@@ -55,6 +55,14 @@ create table test_$1.test2$ (a int);
drop table test_$1.test2$;
drop database test_$1;
+--error 1103
+create table `` (a int);
+--error 1103
+drop table if exists ``;
+--error 1166
+create table t1 (`` int);
+drop table if exists t1;
+
#
# Test of CREATE ... SELECT with indexes
#