summaryrefslogtreecommitdiff
path: root/mysql-test/r/create.result
diff options
context:
space:
mode:
authormonty@narttu.mysql.fi <>2003-10-08 18:53:31 +0300
committermonty@narttu.mysql.fi <>2003-10-08 18:53:31 +0300
commit9e57c12b5a0d623a72be968f8cbd2ad769a84a29 (patch)
tree91c3c750d9a03c42d9da0b2335928ae4a162e4ea /mysql-test/r/create.result
parent246febee424759c8ea3dc34eaa29b60a68a0a72b (diff)
downloadmariadb-git-9e57c12b5a0d623a72be968f8cbd2ad769a84a29.tar.gz
Fixed bug in error handling of CREATE ... SELECT
More tests cases After merge fixes
Diffstat (limited to 'mysql-test/r/create.result')
-rw-r--r--mysql-test/r/create.result10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/r/create.result b/mysql-test/r/create.result
index 8eff870e855..277ae9e0b8d 100644
--- a/mysql-test/r/create.result
+++ b/mysql-test/r/create.result
@@ -129,6 +129,16 @@ ERROR 42S21: Duplicate column name 'b'
drop table if exists t1,t2;
Warnings:
Note 1051 Unknown table 't2'
+CREATE TABLE t1 (a int not null);
+INSERT INTO t1 values (1),(2),(1);
+CREATE TABLE t2 (primary key(a)) SELECT * FROM t1;
+ERROR 23000: Duplicate entry '1' for key 1
+SELECT * from t2;
+ERROR 42S02: Table 'test.t2' doesn't exist
+DROP TABLE t1;
+DROP TABLE IF EXISTS t2;
+Warnings:
+Note 1051 Unknown table 't2'
create table t1 (a int not null, b int, primary key(a), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b));
show create table t1;
Table Create Table