diff options
author | monty@mashka.mysql.fi <> | 2002-10-02 17:55:12 +0300 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2002-10-02 17:55:12 +0300 |
commit | 0f394576131c2f66046673420ca8b1311981a614 (patch) | |
tree | a7ce8fe730bd0e06166bb15edcbe5aef252c2c3b /mysql-test/t/create.test | |
parent | 7377f546316b13c2563fede4c3ed2506d29a93ac (diff) | |
parent | 4d705988d562cac60d44e22f8d6e76df63432c72 (diff) | |
download | mariadb-git-0f394576131c2f66046673420ca8b1311981a614.tar.gz |
Merge with 4.0.4
Diffstat (limited to 'mysql-test/t/create.test')
-rw-r--r-- | mysql-test/t/create.test | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/t/create.test b/mysql-test/t/create.test index bb0d6dc0d64..47ee55620e4 100644 --- a/mysql-test/t/create.test +++ b/mysql-test/t/create.test @@ -83,6 +83,22 @@ describe t2; drop table t1,t2; # +# Test of CREATE ... SELECT with duplicate fields +# + +create table t1 (a tinyint); +create table t2 (a int) select * from t1; +describe t1; +describe t2; +drop table if exists t2; +!$1060 create table t2 (a int, a float) select * from t1; +drop table if exists t2; +!$1060 create table t2 (a int) select a as b, a+1 as b from t1; +drop table if exists t2; +!$1060 create table t2 (b int) select a as b, a+1 as b from t1; +drop table if exists t1,t2; + +# # Test of primary key with 32 index # |