From: Gerhard H?r. <gha...@us...> - 2002-08-03 06:03:43
|
Update of /cvsroot/pypgsql/pypgsql/test In directory usw-pr-cvs1:/tmp/cvs-serv22828/test Modified Files: PgSQLTestCases.py Log Message: 03AUG2002 gh - Fixed problem that occurs when a query on an OID field doesn't return any rows. [Bug #589370]. - Added the corresponding test case. Index: PgSQLTestCases.py =================================================================== RCS file: /cvsroot/pypgsql/pypgsql/test/PgSQLTestCases.py,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** PgSQLTestCases.py 29 Jul 2002 00:59:59 -0000 1.19 --- PgSQLTestCases.py 3 Aug 2002 06:03:40 -0000 1.20 *************** *** 33,36 **** --- 33,38 ---- # Date Ini Description | # --------- --- ------------------------------------------------------- | + # 03AUG2002 gh Added test for bug #589370 (wether it is possible to | + # use OID in a query that doesn't return any rows). | # 29JUL2002 gh Added a few tests for PgNumeric (which currently fail). | # Simplified the construction of testcases by a lot and | *************** *** 715,718 **** --- 717,727 ---- except StandardError, msg: self.fail(msg) + + def CheckSelectOfOidWithZeroRows(self): + # Check for control flow of bug #589370 + try: + self.cur.execute('select oid from pg_type where false') + except StandardError, msg: + self.fail(msg) def suite(): |