python - pq: Fix error handling in Query and Function.

From: jwp(at)pgfoundry(dot)org (James William Pye)
To: pgsql-committers(at)postgresql(dot)org
Subject: python - pq: Fix error handling in Query and Function.
Date: 2006-02-19 06:12:26
Message-ID: 20060219061226.DDEBC103380D@pgfoundry.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Fix error handling in Query and Function.

The transactions, specifically Query, were propagating the state to a
non-existing method. The problem here is that that raised a Transaction
exception that made the interface(proboscis) think that it was an unhandled
exception/error. That was a problem as Query and Function were meant to "handle"
their error message and following autosync Ready message.

Also, make some protocol exceptions more descriptive.

Modified Files:
--------------
pq/src:
client3.py (r1.15 -> r1.16)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/pq/src/client3.py.diff?r1=1.15&r2=1.16)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2006-02-19 19:59:54 pgsql: Update obsolete comment.
Previous Message Tom Lane 2006-02-19 05:58:36 pgsql: Modify logtape.c so that the initial LogicalTapeSetCreate call