*** Bug #23689 ***
DROP TABLE IF EXISTS t1;
SET NAMES utf8;
SET STORAGE_ENGINE = MyISAM;
CREATE TABLE t1 (a char(5) character set latin1 collate latin1_german2_ci);
INSERT INTO t1 VALUES ('UE'), ('ü'), (0xDC);
SELECT hex(a) FROM t1 WHERE a = 'UE';
hex(a)
5545
FC
DC
SELECT hex(a) FROM t1 WHERE a = 'ü';
hex(a)
5545
FC
DC
SELECT hex(a) FROM t1 WHERE a = 0xDC;
hex(a)
5545
FC
DC
CREATE INDEX i1 on t1 (a);
SELECT hex(a) FROM t1 WHERE a = 'UE';
hex(a)
5545
FC
DC
SELECT hex(a) FROM t1 WHERE a = 'ü';
hex(a)
5545
FC
DC
SELECT hex(a) FROM t1 WHERE a = 0xDC;
hex(a)
5545
FC
DC
DROP TABLE t1;
SET STORAGE_ENGINE = Falcon;
CREATE TABLE t1 (a char(5) character set latin1 collate latin1_german2_ci);
INSERT INTO t1 VALUES ('UE'), ('ü'), (0xDC);
SELECT hex(a) FROM t1 WHERE a = 'UE';
hex(a)
5545
FC
DC
SELECT hex(a) FROM t1 WHERE a = 'ü';
hex(a)
5545
FC
DC
SELECT hex(a) FROM t1 WHERE a = 0xDC;
hex(a)
5545
FC
DC
CREATE INDEX i1 on t1 (a);
SELECT hex(a) FROM t1 WHERE a = 'UE';
hex(a)
5545
FC
DC
SELECT hex(a) FROM t1 WHERE a = 'ü';
hex(a)
5545
FC
DC
SELECT hex(a) FROM t1 WHERE a = 0xDC;
hex(a)
5545
FC
DC
DROP TABLE t1;
SET NAMES default;
