diff options
author | bell@sanja.is.com.ua <> | 2005-05-26 17:30:12 +0300 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2005-05-26 17:30:12 +0300 |
commit | db2ce1edf6e1f7e322b573f01a86bd18d55f9b59 (patch) | |
tree | 621ee4a4707d47203a998927e85bd2b8a6772f00 /mysql-test/t/union.test | |
parent | 2536b5933a02e2c0c5f7baa412494b587735e5ef (diff) | |
download | mariadb-git-db2ce1edf6e1f7e322b573f01a86bd18d55f9b59.tar.gz |
fixed problem with long string results of expressions in UNIONS (BUG#10025)
Diffstat (limited to 'mysql-test/t/union.test')
-rw-r--r-- | mysql-test/t/union.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/t/union.test b/mysql-test/t/union.test index b0446e1ea4a..ffc7e718e9d 100644 --- a/mysql-test/t/union.test +++ b/mysql-test/t/union.test @@ -742,3 +742,14 @@ create table t2 select a from t1 union select c from t1; create table t2 select a from t1 union select b from t1; show columns from t2; drop table t2, t1; + +# +# 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; |