From: Billy G. A. <bal...@us...> - 2003-10-06 18:35:35
|
Update of /cvsroot/pypgsql/pypgsql In directory sc8-pr-cvs1:/tmp/cvs-serv27505 Modified Files: pgversion.c Log Message: 06OCT2004 bga [Bug #786712 & #816729] Allowed for a version string containing the words "alpha" and "beta". Thanks to Gerhard Quell and Jeff Putman for the fixes. Index: pgversion.c =================================================================== RCS file: /cvsroot/pypgsql/pypgsql/pgversion.c,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** pgversion.c 1 Dec 2002 22:10:51 -0000 1.19 --- pgversion.c 6 Oct 2003 18:35:31 -0000 1.20 *************** *** 32,35 **** --- 32,38 ---- | Date Ini Description | | --------- --- ------------------------------------------------------- | + | 06OCT2004 bga [Bug #786712 & #816729] Allowed for a version string | + | containing the words "alpha" and "beta". | + | Thanks to Gerhard Quell and Jeff Putman for the fixes. | | 26NOV2002 bga Allowed for release canidate (rcN) version strings. | | 16SEP2002 gh Reflect the change to the unconditionally included | *************** *** 185,188 **** --- 188,195 ---- return (errno != 0); + if ((pgstricmp(last, "alpha") == 0) || + (pgstricmp(last, "beta") == 0)) + return (error != 0); + /* Allow for release canidates */ if ((*last == 'r') && (*(last+1) == 'c') && isdigit(*(last+2))) *************** *** 246,250 **** */ PyErr_SetString(PyExc_ValueError, ! "Ivalid format for PgVersion construction."); --- 253,257 ---- */ PyErr_SetString(PyExc_ValueError, ! "Invalid format for PgVersion construction."); |