Re: PATCH: pick exception type based on SQLSTATE
Federico Di Gregorio <fog-NGVKUo/i/[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Organization | initd.org |
| Message-ID | <[email protected]> |
Il giorno sab, 12/01/2008 alle 00.29 +0900, James Henstridge ha scritto: > The patch also changes pq_complete_error() to not force an exception > type when calling pq_raise(). This means that e.g. integrity errors > caught on transaction commit will raise IntegrityError instead of > OperationalError (this required fixing one of the tests). > Does this look okay to commit? Yes. -- Federico Di Gregorio http://people.initd.org/fog Debian GNU/Linux Developer [email protected] INIT.D Developer fog-NGVKUo/i/[email protected] heisenbug /hi:'zen-buhg/ /n./ [from Heisenberg's Uncertainty Principle in quantum physics] A bug that disappears or alters its behavior when one attempts to probe or isolate it. _______________________________________________ Psycopg mailing list Psycopg-IAPFreCvJWPBWskQ1e/[email protected] http://lists.initd.org/mailman/listinfo/psycopg
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHh44vvcCgrgZGjesRAqe4AKDFdo69dB09rIb4D/KxB7954TzSuQCg1Ers +9H0w26P/Dg+mfOvWhgs86c= =3v0y -----END PGP SIGNATURE-----