SET STORAGE_ENGINE = Falcon;
*** Bug #26057 ***
DROP TABLE IF EXISTS t1;
SET NAMES utf8;
CREATE TABLE t1 (a char(15) character set utf8);
INSERT INTO t1 VALUES (0xC3A2);
INSERT INTO t1 VALUES (0xC3A2C3A2C3A2C3A2C3A2);
INSERT INTO t1 VALUES (0xC3A2C3A2C3A2C3A2C3A2C3A2);
INSERT INTO t1 VALUES (0x616161C3A2C3A2);
INSERT INTO t1 VALUES (0xC3A2C3A2616161);
INSERT INTO t1 VALUES (0xC3A2414141C3A2);
SELECT hex(a) FROM t1 WHERE a = 'a';
hex(a)
C3A2
SELECT hex(a) FROM t1 WHERE a < 'a';
hex(a)
SELECT hex(a) FROM t1 WHERE a > 'a';
hex(a)
C3A2C3A2C3A2C3A2C3A2
C3A2C3A2C3A2C3A2C3A2C3A2
616161C3A2C3A2
C3A2C3A2616161
C3A2414141C3A2
SELECT hex(a) FROM t1 WHERE a = 'aaaaa';
hex(a)
C3A2C3A2C3A2C3A2C3A2
616161C3A2C3A2
C3A2C3A2616161
C3A2414141C3A2
SELECT hex(a) FROM t1 WHERE a = 0xC3A24161C3A2C3A2;
hex(a)
C3A2C3A2C3A2C3A2C3A2
616161C3A2C3A2
C3A2C3A2616161
C3A2414141C3A2
SELECT hex(a) FROM t1 WHERE a > 'aaaaa';
hex(a)
C3A2C3A2C3A2C3A2C3A2C3A2
SELECT hex(a) FROM t1 WHERE a = 'aAaAaA';
hex(a)
C3A2C3A2C3A2C3A2C3A2C3A2
SELECT hex(a) FROM t1 WHERE a = 0xC3A2C3A2C3A2C3A2C3A2;
hex(a)
C3A2C3A2C3A2C3A2C3A2
616161C3A2C3A2
C3A2C3A2616161
C3A2414141C3A2
CREATE INDEX i1 on t1 (a(5));
SELECT hex(a) FROM t1 WHERE a = 'a';
hex(a)
C3A2
SELECT hex(a) FROM t1 WHERE a < 'a';
hex(a)
SELECT hex(a) FROM t1 WHERE a > 'a';
hex(a)
C3A2C3A2C3A2C3A2C3A2
C3A2C3A2C3A2C3A2C3A2C3A2
616161C3A2C3A2
C3A2C3A2616161
C3A2414141C3A2
SELECT hex(a) FROM t1 WHERE a = 'aaaaa';
hex(a)
C3A2C3A2C3A2C3A2C3A2
616161C3A2C3A2
C3A2C3A2616161
C3A2414141C3A2
SELECT hex(a) FROM t1 WHERE a = 0xC3A24161C3A2C3A2;
hex(a)
C3A2C3A2C3A2C3A2C3A2
616161C3A2C3A2
C3A2C3A2616161
C3A2414141C3A2
SELECT hex(a) FROM t1 WHERE a > 'aaaaa';
hex(a)
C3A2C3A2C3A2C3A2C3A2C3A2
SELECT hex(a) FROM t1 WHERE a = 'aAaAaA';
hex(a)
C3A2C3A2C3A2C3A2C3A2C3A2
SELECT hex(a) FROM t1 WHERE a = 0xC3A2C3A2C3A2C3A2C3A2;
hex(a)
C3A2C3A2C3A2C3A2C3A2
616161C3A2C3A2
C3A2C3A2616161
C3A2414141C3A2
DROP TABLE t1;
