Modify ↓
#5217 closed defect (duplicate)
IntegrityError: column name is not unique, while was created a new milestone
Reported by: | Owned by: | Christopher Lenz | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | roadmap | Version: | 0.10.3rc1 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
This exception “jumped” while was created a new milestone because the name of a new milestone has already exists.
I think that it would have to be treated, and not to return the error of a Python Traceback
If this is not posible or it was already improved, sorry and close the ticket.
Thanks and sorry for my inglish
This is the code of a Traceback:
Python Traceback Traceback (most recent call last): File "/usr/local/lib/python2.3/site-packages/trac-0.10.3rc1-py2.3.egg/trac/web/main.py", line 387, in dispatch_request dispatcher.dispatch(req) File "/usr/local/lib/python2.3/site-packages/trac-0.10.3rc1-py2.3.egg/trac/web/main.py", line 237, in dispatch resp = chosen_handler.process_request(req) File "/usr/local/lib/python2.3/site-packages/trac-0.10.3rc1-py2.3.egg/trac/ticket/roadmap.py", line 359, in process_request self._do_save(req, db, milestone) File "/usr/local/lib/python2.3/site-packages/trac-0.10.3rc1-py2.3.egg/trac/ticket/roadmap.py", line 430, in _do_save milestone.insert() File "/usr/local/lib/python2.3/site-packages/trac-0.10.3rc1-py2.3.egg/trac/ticket/model.py", line 616, in insert (self.name, self.due, self.completed, self.description)) File "/usr/local/lib/python2.3/site-packages/trac-0.10.3rc1-py2.3.egg/trac/db/util.py", line 50, in execute return self.cursor.execute(sql_escape_percent(sql), args) File "/usr/local/lib/python2.3/site-packages/trac-0.10.3rc1-py2.3.egg/trac/db/sqlite_backend.py", line 56, in execute args or []) File "/usr/local/lib/python2.3/site-packages/trac-0.10.3rc1-py2.3.egg/trac/db/sqlite_backend.py", line 48, in _rollback_on_error return function(self, *args, **kwargs) IntegrityError: column name is not unique
Santiago Pessat
Attachments (0)
Change History (2)
comment:1 by , 18 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Version: | → 0.10.3rc1 |
comment:2 by , 18 years ago
sorry for duplicate the ticket and thanks to warn to me on the update.
Thanks and sorry for my inglish.
Santiago Pessat.
Note:
See TracTickets
for help on using tickets.
This is a duplicate if #3652.
BTW, you'd better upgrade to a recent Trac release such as 0.10.4: you are using a release candidate version.