summaryrefslogtreecommitdiff
path: root/mysql-test/r/union.result
diff options
context:
space:
mode:
authorunknown <jimw@rama.(none)>2006-07-21 13:28:42 -0700
committerunknown <jimw@rama.(none)>2006-07-21 13:28:42 -0700
commitd37456f745ee64c85db54c7327c1aeefd5c582ef (patch)
tree229d1e059dc60b7b94c0c65216dbd2689ce6940c /mysql-test/r/union.result
parentdc50ce997083b4f3d3e4ab237c6a1f5e11cfd90f (diff)
downloadmariadb-git-d37456f745ee64c85db54c7327c1aeefd5c582ef.tar.gz
Bug #16881: password() and union select
This was only demonstrated by the use of PASSWORD(), it was not related to that function at all. The calculation of the size of a field in the results of a UNION did not take into account the possible growth of a string field when being converted to the aggregated character set. mysql-test/r/union.result: Add new results mysql-test/t/union.test: Add new regression test sql/item.cc: Fix calculation of max_length when figuring out the type of a column in a UNION. It needs to take into account any expansion of field size due to charset conversions.
Diffstat (limited to 'mysql-test/r/union.result')
-rw-r--r--mysql-test/r/union.result5
1 files changed, 5 insertions, 0 deletions
diff --git a/mysql-test/r/union.result b/mysql-test/r/union.result
index 426387e04f5..19b0211c442 100644
--- a/mysql-test/r/union.result
+++ b/mysql-test/r/union.result
@@ -1351,3 +1351,8 @@ drop table t1;
(select avg(1)) union (select avg(1)) union (select avg(1));
avg(1)
NULL
+select _utf8'12' union select _latin1'12345';
+12
+12
+12345
+End of 5.0 tests