]> granicus.if.org Git - php/commitdiff
- Fixed bug #21232 (Unresolved references to PQsetnonblocking). (Patch by
authorDerick Rethans <derick@php.net>
Sat, 4 Jan 2003 12:33:46 +0000 (12:33 +0000)
committerDerick Rethans <derick@php.net>
Sat, 4 Jan 2003 12:33:46 +0000 (12:33 +0000)
  Floyd <floyd@studiodust.com>)

ext/pgsql/pgsql.c

index 9a4984d9bf98f25a84d22b390fd0127ee90298ac..12cf75f3cbaa754f73cd12fd7cd865e5738c8e8c 100644 (file)
@@ -2833,7 +2833,7 @@ static int php_pgsql_flush_query(PGconn *pgsql TSRMLS_DC)
        PGresult *res;
        int leftover = 0;
        
-       if (PQsetnonblocking(pgsql, 1)) {
+       if (PQ_SETNONBLOCKING(pgsql, 1)) {
                php_error_docref(NULL TSRMLS_CC, E_NOTICE,"Cannot set connection to nonblocking mode.");
                return -1;
        }
@@ -2841,7 +2841,7 @@ static int php_pgsql_flush_query(PGconn *pgsql TSRMLS_DC)
                PQclear(res);
                leftover++;
        }
-       PQsetnonblocking(pgsql, 0);
+       PQ_SETNONBLOCKING(pgsql, 0);
        return leftover;
 }
 /* }}} */