Opened 9 years ago

Closed 7 years ago

#13 closed enhancement (fixed)

Make SQLSTATE error codes available

Reported by: cito Owned by: D'Arcy J.M. Cain
Priority: major Milestone: 4.2
Component: C Module Version: 4.0
Keywords: Cc:

Description

For better error handling it would be useful if the SQLSTATE (a five-character array, as explained here) could be accessed via Pygres.

Change History (4)

comment:1 Changed 9 years ago by cito

See also the discussion on the mailing list here and here.

Last edited 9 years ago by cito (previous) (diff)

comment:2 Changed 7 years ago by cito

see also #45

comment:3 Changed 7 years ago by cito

Implemented in r434. The SQLSTATE is now available in the sqlstate attribute of all DatabaseErrors.

Last edited 7 years ago by cito (previous) (diff)

comment:4 Changed 7 years ago by cito

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.