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

#7874: CONCAT() gives wrong results mixing latin1 field and utf8 string literals

We should not overwrite res if it is returned from a const item.
This commit is contained in:
bar@mysql.com
2005-01-18 10:42:29 +04:00
parent edffca827e
commit 8f23e90232
3 changed files with 26 additions and 1 deletions

View File

@@ -849,3 +849,15 @@ utf8_bin 6109
utf8_bin 61
utf8_bin 6120
drop table t1;
CREATE TABLE t1 (
user varchar(255) NOT NULL default ''
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
INSERT INTO t1 VALUES ('one'),('two');
SELECT CHARSET('a');
CHARSET('a')
utf8
SELECT user, CONCAT('<', user, '>') AS c FROM t1;
user c
one <one>
two <two>
DROP TABLE t1;