Bug #36868 UNIQUE contraint reports violation when with VARCHAR field
| Submitted: | 22 May 2008 1:17 | Modified: | 23 May 2008 18:30 |
|---|---|---|---|
| Reporter: | Jeff Mouroux | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server: General | Severity: | S2 (Serious) |
| Version: | 5.051b-community-nt | OS: | Windows |
| Assigned to: | CPU Architecture: | Any |
[22 May 2008 1:17]
Jeff Mouroux
[22 May 2008 1:17]
Jeff Mouroux
Correction on the second insert statement: INSERT INTO test VALUES (2, 1, 'Group');
[22 May 2008 4:19]
Valeriy Kravchuk
Thank you for a problem report. Please, send the results of: show variables like 'coll%'; from the testing environment.
[23 May 2008 1:03]
Jeff Mouroux
The output of the query requested is: Variable_name, Value 'collation_connection', 'utf8_general_ci' 'collation_database', 'latin1_swedish_ci' 'collation_server', 'latin1_swedish_ci'
[23 May 2008 18:30]
Sveta Smirnova
Thank you for the feedback. > 'collation_database', 'latin1_swedish_ci' You use case insensitive collation, so it is expected what 'Group' is considered equal of 'group'. So I close the report as "Not a Bug". Please use case ensitive (*_cs) or binary collation.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.041 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.