Update of /cvsroot/pypgsql/pypgsql/test
In directory usw-pr-cvs1:/tmp/cvs-serv12078/test
Modified Files:
PgSQLTestCases.py
Log Message:
16APR2002 gh
pgversion.c:
Replace _tolower with the standard C tolower function,
to make this file compile on FreeBSD.
pyPgSQL/PgSQL.py:
Fix the array parsing so it also works with PostgreSQL
versions 7.2.x. The PostgreSQL developers changed the
quoting in the string representation of arrays in 7.2
beta cycle: strings are now only quoted when otherwise
the array representation would be ambiguous. The new
parseArray() method should handle the old and new way
of quoting in arrays. [Bug #539769].
test/PgSQLTestCases.py:
Updated the PostgreSQL version specific tests to cope
with PostgreSQL 7.2.x.
Index: PgSQLTestCases.py
===================================================================
RCS file: /cvsroot/pypgsql/pypgsql/test/PgSQLTestCases.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** PgSQLTestCases.py 18 Oct 2001 03:17:08 -0000 1.16
--- PgSQLTestCases.py 16 Apr 2002 00:14:01 -0000 1.17
***************
*** 33,36 ****
--- 33,38 ----
# Date Ini Description |
# --------- --- ------------------------------------------------------- |
+ # 16APR2002 gh Updated the PostgreSQL version specific tests to cope |
+ # with PostgreSQL 7.2.x. |
# 09SEP2001 bga Modified tests to reflect changes to PgVersion object. |
# In particulare, a PgVersion object no longer has a |
***************
*** 475,479 ****
"""Test execute() with a singleton string as the parameter."""
! if self.vstr == "7.1":
flen = 7
else:
--- 477,483 ----
"""Test execute() with a singleton string as the parameter."""
! if self.vstr == "7.2":
! flen = 9
! elif self.vstr == "7.1":
flen = 7
else:
***************
*** 662,666 ****
# Note: We only have to check for the minor version number in order
# to determine the needed row counts.
! rc = { '7.1':80, '7.0':65, '6.5':47 }
v = self.vstr
--- 666,670 ----
# Note: We only have to check for the minor version number in order
# to determine the needed row counts.
! rc = { '7.2':101, '7.1':80, '7.0':65, '6.5':47 }
v = self.vstr
|