diff options
author | svoj@june.mysql.com <> | 2007-01-31 18:57:54 +0400 |
---|---|---|
committer | svoj@june.mysql.com <> | 2007-01-31 18:57:54 +0400 |
commit | b6f39522de3bf5a045a28bc4ce8223c50efb73de (patch) | |
tree | 04049bd6c35655439efbc26ed415a1993b16d6bb /mysql-test/t/merge.test | |
parent | f05c519a6b225556fa3aa46a885d5b8571d326ac (diff) | |
parent | 11322bfaf154fc263f76b905022d39decb568e72 (diff) | |
download | mariadb-git-b6f39522de3bf5a045a28bc4ce8223c50efb73de.tar.gz |
Merge mysql.com:/home/svoj/devel/mysql/WL3567/mysql-5.0-engines
into mysql.com:/home/svoj/devel/mysql/WL3567/mysql-5.1-engines
Diffstat (limited to 'mysql-test/t/merge.test')
-rw-r--r-- | mysql-test/t/merge.test | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/mysql-test/t/merge.test b/mysql-test/t/merge.test index 5498468d902..02e727a8834 100644 --- a/mysql-test/t/merge.test +++ b/mysql-test/t/merge.test @@ -389,7 +389,7 @@ drop table t1, t2, t3; CREATE TABLE t1(a INT); INSERT INTO t1 VALUES(2),(1); CREATE TABLE t2(a INT, KEY(a)) ENGINE=MERGE UNION=(t1); ---error 1030 +--error 1168 SELECT * FROM t2 WHERE a=2; DROP TABLE t1, t2; @@ -407,6 +407,33 @@ CREATE TABLE t2(a INT) ENGINE=MERGE UNION=(t3); SELECT * FROM t2; DROP TABLE t2; +# +# Underlying table definition conformance tests. +# +CREATE TABLE t1(a INT, b TEXT); +CREATE TABLE tm1(a TEXT, b INT) ENGINE=MERGE UNION=(t1); +--error 1168 +SELECT * FROM tm1; +DROP TABLE t1, tm1; + +CREATE TABLE t1(a SMALLINT, b SMALLINT); +CREATE TABLE tm1(a INT) ENGINE=MERGE UNION=(t1); +--error 1168 +SELECT * FROM tm1; +DROP TABLE t1, tm1; + +CREATE TABLE t1(a SMALLINT, b SMALLINT, KEY(a, b)); +CREATE TABLE tm1(a SMALLINT, b SMALLINT, KEY(a)) ENGINE=MERGE UNION=(t1); +--error 1168 +SELECT * FROM tm1; +DROP TABLE t1, tm1; + +CREATE TABLE t1(a SMALLINT, b SMALLINT, KEY(b)); +CREATE TABLE tm1(a SMALLINT, b SMALLINT, KEY(a)) ENGINE=MERGE UNION=(t1); +--error 1168 +SELECT * FROM tm1; +DROP TABLE t1, tm1; + # End of 4.1 tests # |