summaryrefslogtreecommitdiff
path: root/psycopg/adapter_datetime.c
diff options
context:
space:
mode:
authorJames Henstridge <james@jamesh.id.au>2008-01-11 15:10:21 +0000
committerJames Henstridge <james@jamesh.id.au>2008-01-11 15:10:21 +0000
commit7d80c05748ae8ebb4cda0ecfef2919751f6170e8 (patch)
tree47c32e84114d8ec66e883f3f79516e2c71d681cb /psycopg/adapter_datetime.c
parent86597f6939bc2c3b1be94f1b46eebb76f8ccad12 (diff)
downloadpsycopg2-7d80c05748ae8ebb4cda0ecfef2919751f6170e8.tar.gz
* tests/test_transaction.py
(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.
Diffstat (limited to 'psycopg/adapter_datetime.c')
0 files changed, 0 insertions, 0 deletions