summaryrefslogtreecommitdiff
path: root/mysql-test/t/merge.test
diff options
context:
space:
mode:
authorunknown <svoj@mysql.com/june.mysql.com>2007-01-31 17:09:58 +0400
committerunknown <svoj@mysql.com/june.mysql.com>2007-01-31 17:09:58 +0400
commit3e35fffa909e82475dbac5a02bdb8bef26b1effe (patch)
tree6ceb1e941102a0524e3df9896048492d38121db2 /mysql-test/t/merge.test
parent2ed7eaf56424485e475ef7f1c430b1881ac02fc2 (diff)
parentab3abe123285a85142d75d4c4a7067d5f6c913b3 (diff)
downloadmariadb-git-3e35fffa909e82475dbac5a02bdb8bef26b1effe.tar.gz
Merge mysql.com:/home/svoj/devel/mysql/WL3567/mysql-4.1-engines
into mysql.com:/home/svoj/devel/mysql/WL3567/mysql-5.0-engines mysql-test/t/merge.test: Auto merged mysql-test/r/merge.result: Manually merged. sql/ha_myisam.cc: Manually merged. sql/ha_myisammrg.cc: Manually merged.
Diffstat (limited to 'mysql-test/t/merge.test')
-rw-r--r--mysql-test/t/merge.test29
1 files changed, 28 insertions, 1 deletions
diff --git a/mysql-test/t/merge.test b/mysql-test/t/merge.test
index 1308b0b83a4..f2a021051b6 100644
--- a/mysql-test/t/merge.test
+++ b/mysql-test/t/merge.test
@@ -385,7 +385,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;
@@ -403,6 +403,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
#