1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

new length detection for non-string in UNION (BUG#4067)

This commit is contained in:
bell@sanja.is.com.ua
2004-06-16 16:06:30 +03:00
parent 5f8ef7a38d
commit 002364c20f
5 changed files with 96 additions and 14 deletions

View File

@ -527,3 +527,11 @@ CREATE TABLE t2 (i int(11) default NULL,c char(1) default NULL,KEY i (i));
--error 1054
explain (select * from t1) union (select * from t2) order by not_existing_column;
drop table t1, t2;
#
# length detecting
#
CREATE TABLE t1 (uid int(1));
INSERT INTO t1 SELECT 150;
SELECT 'a' UNION SELECT uid FROM t1;
drop table t1;