python - pq: Replace asserts and keep determined fatality.

From: jwp(at)pgfoundry(dot)org (James William Pye)
To: pgsql-committers(at)postgresql(dot)org
Subject: python - pq: Replace asserts and keep determined fatality.
Date: 2006-03-13 06:24:15
Message-ID: 20060313062415.158731033834@pgfoundry.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Replace asserts and keep determined fatality.

Determine fatality to avoid redundancy where higher levels may need to
look at the 'fatal' attribute again and again.

Replace debugging assert with real, live exceptions: ParseError in element3, and
ProtocolError in client3.
[Also, fix bindings and executings' exception isolation again.]

Modified Files:
--------------
pq/src:
client3.py (r1.19 -> r1.20)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/pq/src/client3.py.diff?r1=1.19&r2=1.20)
element3.py (r1.13 -> r1.14)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/pq/src/element3.py.diff?r1=1.13&r2=1.14)

Browse pgsql-committers by date

  From Date Subject
Next Message James William Pye 2006-03-13 06:33:09 python - fe: Use Transaction.fatal for fatality detection.
Previous Message User Okbob 2006-03-13 06:01:28 orafce - orafce: PLVdate completed - multicultural library for bussines