edink Tue Mar 14 11:14:05 2006 UTC
Modified files:
/php-src/ext/pdo_pgsql pgsql_driver.c
Log:
MFB: Fixed build
http://cvs.php.net/viewcvs.cgi/php-src/ext/pdo_pgsql/pgsql_driver.c?r1=1.57&r2=1.58&diff_format=u
Index: php-src/ext/pdo_pgsql/pgsql_driver.c
diff -u php-src/ext/pdo_pgsql/pgsql_driver.c:1.57
php-src/ext/pdo_pgsql/pgsql_driver.c:1.58
--- php-src/ext/pdo_pgsql/pgsql_driver.c:1.57 Sun Jan 29 17:36:12 2006
+++ php-src/ext/pdo_pgsql/pgsql_driver.c Tue Mar 14 11:14:05 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pgsql_driver.c,v 1.57 2006/01/29 17:36:12 iliaa Exp $ */
+/* $Id: pgsql_driver.c,v 1.58 2006/03/14 11:14:05 edink Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -223,13 +223,14 @@
pdo_pgsql_db_handle *H = (pdo_pgsql_db_handle *)dbh->driver_data;
PGresult *res;
long ret = 1;
+ ExecStatusType qs;
if (!(res = PQexec(H->server, sql))) {
/* fatal error */
pdo_pgsql_error(dbh, PGRES_FATAL_ERROR, NULL);
return -1;
}
- ExecStatusType qs = PQresultStatus(res);
+ qs = PQresultStatus(res);
if (qs != PGRES_COMMAND_OK && qs != PGRES_TUPLES_OK) {
pdo_pgsql_error(dbh, qs, pdo_pgsql_sqlstate(res));
PQclear(res);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php