summaryrefslogtreecommitdiff
path: root/mysql-test/t/merge.test
diff options
context:
space:
mode:
authorunknown <serg@sergbook.mysql.com>2002-11-05 17:10:31 +0100
committerunknown <serg@sergbook.mysql.com>2002-11-05 17:10:31 +0100
commit66f4e1b9ac5a8f406701062d8162f346ca7098a0 (patch)
tree08a1fa8fa160f71c0adbaa7ceb8fb19506f5c761 /mysql-test/t/merge.test
parentc0309e5a2f2b6f3f060f0a5b5fb781c1206c2c58 (diff)
parentec2df91657ed9042c706b3d0bd5f5574051ad3f7 (diff)
downloadmariadb-git-66f4e1b9ac5a8f406701062d8162f346ca7098a0.tar.gz
merged
BitKeeper/deleted/.del-compile-pentium-valgrind-max: Delete: BUILD/compile-pentium-valgrind-max Build-tools/Do-compile: Auto merged sql/field.h: Auto merged sql/ha_innodb.cc: Auto merged sql/ha_myisammrg.cc: Auto merged sql/item_cmpfunc.cc: Auto merged sql/mysqld.cc: Auto merged sql/stacktrace.c: Auto merged
Diffstat (limited to 'mysql-test/t/merge.test')
-rw-r--r--mysql-test/t/merge.test19
1 files changed, 19 insertions, 0 deletions
diff --git a/mysql-test/t/merge.test b/mysql-test/t/merge.test
index 86e787db0a3..55a71cc0ab8 100644
--- a/mysql-test/t/merge.test
+++ b/mysql-test/t/merge.test
@@ -185,3 +185,22 @@ CREATE TABLE t ( a int(11) NOT NULL default '0', b int(11) NOT NULL default '0
select max(b) from t where a = 2;
select max(b) from t1 where a = 2;
drop table if exists t,t1,t2;
+
+#
+# temporary merge tables
+#
+drop table if exists t1, t2, t3, t4, t5, t6;
+create table t1 (a int not null);
+create table t2 (a int not null);
+insert into t1 values (1);
+insert into t2 values (2);
+create temporary table t3 (a int not null) TYPE=MERGE UNION=(t1,t2);
+select * from t3;
+create temporary table t4 (a int not null);
+create temporary table t5 (a int not null);
+insert into t4 values (1);
+insert into t5 values (2);
+create temporary table t6 (a int not null) TYPE=MERGE UNION=(t4,t5);
+select * from t6;
+drop table if exists t1, t2, t3, t4, t5, t6;
+