edink           Mon Mar 13 11:37:51 2006 UTC

  Modified files:              (Branch: PHP_5_1)
    /php-src/ext/pdo_pgsql      pgsql_driver.c 
  Log:
  Fixed build
  
http://cvs.php.net/viewcvs.cgi/php-src/ext/pdo_pgsql/pgsql_driver.c?r1=1.53.2.12&r2=1.53.2.13&diff_format=u
Index: php-src/ext/pdo_pgsql/pgsql_driver.c
diff -u php-src/ext/pdo_pgsql/pgsql_driver.c:1.53.2.12 
php-src/ext/pdo_pgsql/pgsql_driver.c:1.53.2.13
--- php-src/ext/pdo_pgsql/pgsql_driver.c:1.53.2.12      Mon Feb 13 15:53:36 2006
+++ php-src/ext/pdo_pgsql/pgsql_driver.c        Mon Mar 13 11:37:51 2006
@@ -18,7 +18,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: pgsql_driver.c,v 1.53.2.12 2006/02/13 15:53:36 derick Exp $ */
+/* $Id: pgsql_driver.c,v 1.53.2.13 2006/03/13 11:37:51 edink Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -271,13 +271,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

Reply via email to