Same tag twice in different case causes ConstraintError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Starting in v1.0, trying to set tags to have the same word twice, but with different case causes a ConstraintError.
The easiest way to duplicate the problem I've found is to create an empty book and try setting tags to contain a,A.
calibre, version 1.0.0
ERROR: Unhandled exception: <b>ConstraintEr
calibre 1.0 [64bit] isfrozen: True is64bit: True
Windows-8-6.2.9200 Windows ('64bit', 'WindowsPE')
('Windows', '8', '6.2.9200')
Python 2.7.4
Windows: ('8', '6.2.9200', '', 'Multiprocessor Free')
Traceback (most recent call last):
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
File "c:\cygwin\
ConstraintError: ConstraintError: columns book, tag are not unique
I would expect it to either accept and keep both or only keep one.
I first found this issue from users bumping into it when updating metadata from the FanFictionDownL
Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.
status fixreleased