diff options
author | monty@narttu.mysql.fi <> | 2003-10-08 18:53:31 +0300 |
---|---|---|
committer | monty@narttu.mysql.fi <> | 2003-10-08 18:53:31 +0300 |
commit | 9e57c12b5a0d623a72be968f8cbd2ad769a84a29 (patch) | |
tree | 91c3c750d9a03c42d9da0b2335928ae4a162e4ea /mysql-test/t/create.test | |
parent | 246febee424759c8ea3dc34eaa29b60a68a0a72b (diff) | |
download | mariadb-git-9e57c12b5a0d623a72be968f8cbd2ad769a84a29.tar.gz |
Fixed bug in error handling of CREATE ... SELECT
More tests cases
After merge fixes
Diffstat (limited to 'mysql-test/t/create.test')
-rw-r--r-- | mysql-test/t/create.test | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/t/create.test b/mysql-test/t/create.test index 0b86b67fdbf..d57fd3bb193 100644 --- a/mysql-test/t/create.test +++ b/mysql-test/t/create.test @@ -111,6 +111,19 @@ create table t2 (b int) select a as b, a+1 as b from t1; drop table if exists t1,t2; # +# Test CREATE ... SELECT when insert fails +# + +CREATE TABLE t1 (a int not null); +INSERT INTO t1 values (1),(2),(1); +--error 1062 +CREATE TABLE t2 (primary key(a)) SELECT * FROM t1; +--error 1146 +SELECT * from t2; +DROP TABLE t1; +DROP TABLE IF EXISTS t2; + +# # Test of primary key with 32 index # |