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
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.038 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.