pgsql-server/src/interfaces/python pgdb.py

From: darcy(at)postgresql(dot)org (D'Arcy Cain)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server/src/interfaces/python pgdb.py
Date: 2002-11-25 03:11:16
Message-ID: 20021125031116.E3F48475BA0@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: darcy(at)postgresql(dot)org 02/11/24 22:11:16

Modified files:
src/interfaces/python: pgdb.py

Log message:
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.

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2002-11-25 03:33:27 pgsql-server/src/backend/nodes copyfuncs.c equ ...
Previous Message D'Arcy Cain 2002-11-25 02:15:17 pgsql-server/src/interfaces/python pg.py