From: Billy G. A. <bal...@us...> - 2002-02-01 22:59:43
|
Update of /cvsroot/pypgsql/pypgsql In directory usw-pr-cvs1:/tmp/cvs-serv12897 Modified Files: pgversion.c Log Message: 21JAN2002 bga - Expanded the fix of 12JAN2002 to also handle beta versions of PostgreSQL. Index: pgversion.c =================================================================== RCS file: /cvsroot/pypgsql/pypgsql/pgversion.c,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** pgversion.c 2002/01/12 22:38:43 1.13 --- pgversion.c 2002/02/01 22:59:39 1.14 *************** *** 32,35 **** --- 32,37 ---- | Date Ini Description | | --------- --- ------------------------------------------------------- | + | 21JAN2002 bga Expanded the fix of 12JAN2002 to also handle beta ver- | + | sions of PostgreSQL. | | 12JAN2002 bga [Bug #486151] fixed a problem that prevented a connec- | | tion to be made to version 7.2devel of PostgreSQL. | *************** *** 170,176 **** --- 172,183 ---- *result = strtol(token, &last, 0); + /* Allow for development versions */ if (stricmp(last, "devel") == 0) return (errno != 0); + /* Allow for alpha and beta versions */ + if (((*last == 'a') || (*last == 'b')) && isdigit(*(last+1))) + return (errno != 0); + return ((errno != 0) || (*last != (char)0)); } |