diff options
author | unknown <WAX@sergbook.mysql.com> | 2002-07-20 16:36:56 +0200 |
---|---|---|
committer | unknown <WAX@sergbook.mysql.com> | 2002-07-20 16:36:56 +0200 |
commit | 2ed3a33855c1cc652c9d0ed3bf8de1636d5c61ce (patch) | |
tree | fb972b3b4deb48103f00671524e06a55a6490c8a /mysql-test/t/create.test | |
parent | d4e5d2dd3672ed0e9f8b968fb38b2972e03d155b (diff) | |
download | mariadb-git-2ed3a33855c1cc652c9d0ed3bf8de1636d5c61ce.tar.gz |
CREATE ... SELECT extension (WL 317)
BitKeeper/etc/logging_ok:
Logging to logging@openlogging.org accepted
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 99d4e5ae229..ac2f9cd5879 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 # |