Date: Tue, 8 Dec 1998 21:36:17 +0100 (CET) From: Joachim Kuebart <joki@kuebart.stuttgart.netsurf.de> To: ports@FreeBSD.ORG Cc: asami@FreeBSD.ORG Subject: Fix to p5-Pg port (currently marked broken) Message-ID: <199812082036.VAA00714@jaguar.domestic.de>
next in thread | raw e-mail | index | archive | help
Hi, this patch will fix the current problems with the p5-Pg port. --- Pg.xs.orig Fri Nov 27 14:17:27 1998 +++ Pg.xs Tue Dec 8 15:45:32 1998 @@ -297,7 +297,9 @@ char * query CODE: RETVAL = PQexec(conn, query); - if (! RETVAL) { RETVAL = (PGresult *)calloc(1, sizeof(PGresult)); } + if (! RETVAL) { + RETVAL = PQmakeEmptyPGResult(conn, PGRES_FATAL_ERROR); + } OUTPUT: RETVAL @@ -699,7 +701,9 @@ char * query CODE: RETVAL = PQexec(conn, query); - if (! RETVAL) { RETVAL = (PGresult *)calloc(1, sizeof(PGresult)); } + if (! RETVAL) { + RETVAL = PQmakeEmptyPGresult(conn, PGRES_FATAL_ERROR); + } OUTPUT: RETVAL cu Jo --------------------------------------------------------------------- FreeBSD: The Power to Serve <http://www.freebsd.org> Joachim Kuebart Tel: +49 711 653706 Oh god, god, god -- My tongue's asleep Germany and my teeth itch. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812082036.VAA00714>