Ignore:
Timestamp:
Feb 5, 2016, 4:35:34 PM (4 years ago)
Author:
cito
Message:

Raise the proper subclasses of DatabaseError?

Particularly, we raise IntegrityError? instead of ProgrammingError? for
duplicate keys. This also makes PyGreSQL more useable with SQLAlchemy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/contents/changelog.rst

    r821 r823  
    9494    - A new type helper Interval() has been added.
    9595- Changes concerning both modules:
     96    - PyGreSQL now tries to raise more specific and appropriate subclasses of
     97      DatabaseError than just ProgrammingError. Particularly, when database
     98      constraints are violated, it raises an IntegrityError now.
    9699    - The modules now provide get_typecast() and set_typecast() methods
    97100      allowing to control the typecasting on the global level.  The connection
Note: See TracChangeset for help on using the changeset viewer.