]> granicus.if.org Git - postgresql/commit
I'm sending you a small patch to pgdb.py module. This
authorD'Arcy J.M. Cain <darcy@druid.net>
Mon, 25 Nov 2002 03:11:15 +0000 (03:11 +0000)
committerD'Arcy J.M. Cain <darcy@druid.net>
Mon, 25 Nov 2002 03:11:15 +0000 (03:11 +0000)
commit200dd8e3f82370a37ade1f453bc16e0901a6dd1b
tree766169a4a14170918c3f7ec7f31279ac1292ba40
parenta4bc5eeef2d7a405a062bb7a53ceee90f9ffc22a
I'm sending you a small patch to pgdb.py module.  This
raises pgdb.DatabaseError when any of the fetch*
methods was invoked but previous call to execute* did
not produce any result set or no call was issued yet.
Also, raises pgdb.NotSupportedError when .nextset() is
invoked, instead of NameError.

This behaviour complies with DB-API 2.0.

Thanks for your work!

Timur Irmatov.
src/interfaces/python/pgdb.py