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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user