diff options
| author | Derick Rethans <derick@php.net> | 2003-01-04 12:33:46 +0000 |
|---|---|---|
| committer | Derick Rethans <derick@php.net> | 2003-01-04 12:33:46 +0000 |
| commit | 6439ad7640c25fb26dd11fea3ded263660a3c4ad (patch) | |
| tree | f68abe7f96e746d3617f7c42397473e9bfae1769 /ext/pgsql/pgsql.c | |
| parent | 4343df9de29a39e589be5f72bcb1d277fd355e14 (diff) | |
| download | php-git-6439ad7640c25fb26dd11fea3ded263660a3c4ad.tar.gz | |
- Fixed bug #21232 (Unresolved references to PQsetnonblocking). (Patch by
Floyd <floyd@studiodust.com>)
Diffstat (limited to 'ext/pgsql/pgsql.c')
| -rw-r--r-- | ext/pgsql/pgsql.c | 4 |
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; } /* }}} */ |
