From: Karsten H. <Kar...@gm...> - 2006-06-26 16:18:04
|
On Mon, Jun 26, 2006 at 05:17:15PM +0200, Gerhard Häring wrote: > > do you see any chance pyPgSQL could provide SQLSTATE in the > > very near future ? > > Seems doable. As attribute of the exception object or did you have > anything else in mind? Well, for all practical purposes it being an attribute of the exception would be the proper place to put it IMO. It might be an idea to perhaps also put it into the string of the exception itself such as "[SQLSTATE:xxxx] OperationalError: ..." This is similar to how Oracle (and psycopg, currently) does it. That way, someone coding against DB-API *only* might still have a chance to get at the value. Karsten -- GPG key ID E4071346 @ wwwkeys.pgp.net E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346 |