diff options
author | Igor Babaev <igor@askmonty.org> | 2010-07-21 11:10:12 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2010-07-21 11:10:12 -0700 |
commit | 320802e531753a38c2e8afd6b4a0574bd453d06e (patch) | |
tree | bc4a24274cf0124b095d750e6dc55afdad825014 /mysql-test/suite/vcol | |
parent | eeb42082a52b946f50c19e2ac93289416322e25a (diff) | |
parent | b6e05df365b7dce82c22c498114bb1797da0d2a3 (diff) | |
download | mariadb-git-320802e531753a38c2e8afd6b4a0574bd453d06e.tar.gz |
Merge
Diffstat (limited to 'mysql-test/suite/vcol')
-rw-r--r-- | mysql-test/suite/vcol/r/vcol_misc.result | 8 | ||||
-rw-r--r-- | mysql-test/suite/vcol/t/vcol_misc.test | 10 |
2 files changed, 18 insertions, 0 deletions
diff --git a/mysql-test/suite/vcol/r/vcol_misc.result b/mysql-test/suite/vcol/r/vcol_misc.result index a0a036f1900..8da0cc91b2c 100644 --- a/mysql-test/suite/vcol/r/vcol_misc.result +++ b/mysql-test/suite/vcol/r/vcol_misc.result @@ -97,3 +97,11 @@ v yz YZ DROP TABLE t1; +CREATE TABLE t1 (f1 INTEGER, v1 INTEGER AS (f1) VIRTUAL); +CREATE TABLE t2 AS SELECT v1 FROM t1; +SHOW CREATE TABLE t2; +Table Create Table +t2 CREATE TABLE `t2` ( + `v1` int(11) DEFAULT NULL +) ENGINE=MyISAM DEFAULT CHARSET=latin1 +DROP TABLE t1,t2; diff --git a/mysql-test/suite/vcol/t/vcol_misc.test b/mysql-test/suite/vcol/t/vcol_misc.test index 214b3dce612..0ad1ef7af04 100644 --- a/mysql-test/suite/vcol/t/vcol_misc.test +++ b/mysql-test/suite/vcol/t/vcol_misc.test @@ -102,3 +102,13 @@ INSERT INTO t1(a,b,c,d) VALUES ('w','x','y','z'), ('W','X','Y','Z'); SELECT v FROM t1 ORDER BY CONCAT(a,b); DROP TABLE t1; + +# +# Bug#607168: CREATE TABLE AS SELECT that returns virtual columns +# + +CREATE TABLE t1 (f1 INTEGER, v1 INTEGER AS (f1) VIRTUAL); +CREATE TABLE t2 AS SELECT v1 FROM t1; +SHOW CREATE TABLE t2; + +DROP TABLE t1,t2; |