From: Gerhard H?r. <gha...@us...> - 2002-04-16 00:14:07
|
Update of /cvsroot/pypgsql/pypgsql In directory usw-pr-cvs1:/tmp/cvs-serv12078 Modified Files: pgversion.c 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: pgversion.c =================================================================== RCS file: /cvsroot/pypgsql/pypgsql/pgversion.c,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** pgversion.c 1 Feb 2002 22:59:39 -0000 1.14 --- pgversion.c 16 Apr 2002 00:14:01 -0000 1.15 *************** *** 32,35 **** --- 32,37 ---- | Date Ini Description | | --------- --- ------------------------------------------------------- | + | 16APR2002 gh Replace _tolower with the standard C tolower function, | + | to make this file compile on FreeBSD. | | 21JAN2002 bga Expanded the fix of 12JAN2002 to also handle beta ver- | | sions of PostgreSQL. | *************** *** 126,134 **** { if (isupper(*s1)) ! c1 = _tolower(*s1); else c1 = *s1; if (isupper(*s2)) ! c2 = _tolower(*s2); else c2 = *s2; --- 128,136 ---- { if (isupper(*s1)) ! c1 = tolower(*s1); else c1 = *s1; if (isupper(*s2)) ! c2 = tolower(*s2); else c2 = *s2; |