mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 09:24:07 +03:00
7d80c05748
(TransactionTestCase.test_failed_commit): Expect IntegrityError instead of OperationalError. * psycopg/pqpath.c (exception_from_sqlstate): new function that converts an SQLSTATE error code to the corresponding exception class. (pq_raise): use exception_from_sqlstate() to pick which exception to use when working with protocol version 3. (pq_complete_error): Let pq_raise() pick an appropriate exception rather than forcing OperationalError. |
||
---|---|---|
.. | ||
__init__.py | ||
bugX000.py | ||
dbapi20.py | ||
extras_dictcursor.py | ||
test_psycopg2_dbapi20.py | ||
test_quote.py | ||
test_transaction.py | ||
types_basic.py |