Changes between Initial Version and Version 4 of Ticket #7305
- Timestamp:
- Jun 10, 2008, 11:01:14 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #7305
- Property Status new → closed
- Property Resolution → duplicate
- Property Milestone 0.11
-
Ticket #7305 – Description
initial v4 1 1 Trac creates tables in MySQL (during initenv) with the field "node_change.path" having the type of TEXT. Also, Trac creates a primary index of the three fields (rev, path, change_type). So far so good. 2 2 However, when trying to resync with perforce, which allows two files to be of names like "john.txt" and "john.TXT", MySQL (through Trac) claims that 3 3 {{{ 4 4 Traceback (most recent call last): 5 5 File "/usr/bin/trac-admin", line 8, in <module> … … 25 25 _mysql_exceptions.IntegrityError: (1062, "Duplicate entry 'XXX' for key 1") 26 26 (where XXX is the name of the first file that was inserted into the table) 27 27 }}} 28 28 It seems that replacing the type of path from TEXT to BLOB solves the problem, probably because it forces MySQL to compare binary values rather than text values. 29 29 I didn't try to reproduce this with SVN.