Changes between Initial Version and Version 3 of Ticket #14223


Ignore:
Timestamp:
Sep 20, 2010, 9:04:07 PM (14 years ago)
Author:
Ramiro Morales
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14223

    • Property Triage Stage UnreviewedAccepted
    • Property Has patch set
    • Property Owner changed from nobody to Ramiro Morales
    • Property Status newassigned
  • Ticket #14223 – Description

    initial v3  
    11It seems we aren't capturing the `<db api driver module>.IntegrityError` exceptions raised when `connection.commit() is executed` in the same way we do in `execute()`.
    22
    3 Found this while creating tests to verify FK constraint in sqlite (#14304). My `assertRaises(django.db.[utils.]IntegrityError, ...)` weren't being triggered and printing the exception type shows `<class 'pysqlite2.dbapi2.IntegrityError'>`. Same thing happens now with postgres (see below).
     3Found this while creating tests to verify FK constraint in sqlite (#14204). My `assertRaises(django.db.[utils.]IntegrityError, ...)` weren't being triggered and printing the exception type shows `<class 'pysqlite2.dbapi2.IntegrityError'>`. Same thing happens now with postgres (see below).
    44
    55The `DatabaseError` and `IntegrityError` unification was introduced in r12352, if this is confirmed as an issue it wouldn't be a regression in 1.2, but a 1.2 feature introduced in an incomplete fashion.
Back to Top