summaryrefslogtreecommitdiff
path: root/mysql-test/t/union.test
diff options
context:
space:
mode:
authorserg@serg.mylan <>2005-05-28 01:28:18 +0200
committerserg@serg.mylan <>2005-05-28 01:28:18 +0200
commit29d6af8d9ae03c432c7102e308a47e7fe6163acc (patch)
tree80915f4cb7be15d9964fb93e81281b658ce0961c /mysql-test/t/union.test
parent8e09a3b8d1c35ad8dde5549a7558c1f4dc2c6382 (diff)
parentf9e9406b4044d5c243a91f3a849e2609d792a06f (diff)
downloadmariadb-git-29d6af8d9ae03c432c7102e308a47e7fe6163acc.tar.gz
merged
Diffstat (limited to 'mysql-test/t/union.test')
-rw-r--r--mysql-test/t/union.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/t/union.test b/mysql-test/t/union.test
index af548074aa9..4da19622dcb 100644
--- a/mysql-test/t/union.test
+++ b/mysql-test/t/union.test
@@ -773,6 +773,16 @@ alter table t2 ROW_FORMAT=fixed;
show create table t2;
drop table t1,t2;
+#
+# correct conversion long string to TEXT (BUG#10025)
+#
+CREATE TABLE t1 (a mediumtext);
+CREATE TABLE t2 (b varchar(20));
+INSERT INTO t1 VALUES ('a'),('b');
+SELECT left(a,100000000) FROM t1 UNION SELECT b FROM t2;
+create table t3 SELECT left(a,100000000) FROM t1 UNION SELECT b FROM t2;
+show create table t3;
+drop tables t1,t2,t3;
#
# Bug #10032 Bug in parsing UNION with ORDER BY when one node does not use FROM