summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/pgsql/pgsql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index 9a4984d9bf..12cf75f3cb 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -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;
}
/* }}} */