From: | jwp(at)pgfoundry(dot)org (James William Pye) |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | python - fe: Fix repr()'s and correct logic for extracting result count. |
Date: | 2006-07-22 21:20:16 |
Message-ID: | 20060722212016.B41BF86C60E@pgfoundry.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Log Message:
-----------
Fix repr()'s and correct logic for extracting result count.
The code that grabbed the result count used the (x and y or z) idiom to decide
whether to return an integer or the whole message. This, of course, breaks
horribly when the result message is 'UPDATE 0', as zero is not nonzero and thus
the message is returned instead of the count. Stop that.
From the i-cant-wait-till-python-gets-?-and-:-dept.
Modified Files:
--------------
fe/test:
tracenull.py (r1.13 -> r1.14)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/fe/test/tracenull.py.diff?r1=1.13&r2=1.14)
fe/src:
abstract.py (r1.3 -> r1.4)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/fe/src/abstract.py.diff?r1=1.3&r2=1.4)
tracenull.py (r1.26 -> r1.27)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/fe/src/tracenull.py.diff?r1=1.26&r2=1.27)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-07-22 23:04:39 | pgsql: Add support to dynahash.c for partitioning shared hashtables |
Previous Message | Tom Lane | 2006-07-22 21:04:46 | pgsql: Hmm, seems --disable-spinlocks has been broken for awhile and |