Bug #6206 | ENUMs are not case sensitive even if declared BINARY | ||
---|---|---|---|
Submitted: | 22 Oct 2004 1:12 | Modified: | 2 Nov 2004 5:16 |
Reporter: | Shuichi Tamagawa | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 4.1.6-gamma | OS: | Windows (Win XP / SP2) |
Assigned to: | Alexander Barkov | CPU Architecture: | Any |
[22 Oct 2004 1:12]
Shuichi Tamagawa
[22 Oct 2004 9:13]
Hartmut Holzgraefe
this is not charset specific, it is also reproducible with plain ASCII CREATE TABLE t1 (c enum('a', 'A')); INSERT INTO t1 VALUES ('a'),('A'); SELECT * FROM t1; +------+ | c | +------+ | a | | a | +------+ even declaring the ENUM as BINARY doesn't help CREATE TABLE t2 (c enum('a', 'A') BINARY); INSERT INTO t2 VALUES ('a'),('A'); SELECT * FROM t2; +------+ | c | +------+ | a | | a | +------+
[22 Oct 2004 18:29]
Shuichi Tamagawa
So, it looks like the combination of two problems. 1. One sjis character(0x9353) is interpreted as two different characters (0x93, 0x53) 2. ENUM values are not case sensitive