From: SourceForge.net <no...@so...> - 2004-08-24 03:47:40
|
Bugs item #1006782, was opened at 2004-08-10 12:49 Message generated for change (Comment added) made by mfuhr You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=116528&aid=1006782&group_id=16528 Category: libpq Group: None Status: Open Resolution: None Priority: 5 Submitted By: Harald Armin Massa (ghum) Assigned to: Nobody/Anonymous (nobody) Summary: pyPGSQL does not connect to PostgreSQL 8.0 Beta Initial Comment: While trying to connect to Postgresql 8.0, PyPGSQL raises Invalid format for PgVersion construction. Error. That's seems to be within PyObject *PgVersion_New(char *version) of pgversion.c What is going wrong? ---------------------------------------------------------------------- Comment By: Michael Fuhr (mfuhr) Date: 2004-08-23 21:47 Message: Logged In: YES user_id=655499 PgVersion_New() calls parseToken(), which doesn't allow for the string "beta" in the last token of "8.0.0beta1". parseToken() checks for "devel" and a few other cases, but not for "beta". I got it to work by adding the following lines after the check for "devel": if (strncmp(last, "beta", 4) == 0) return (errno != 0); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=116528&aid=1006782&group_id=16528 |