diff options
| author | Derick Rethans <derick@php.net> | 2003-01-04 12:34:27 +0000 |
|---|---|---|
| committer | Derick Rethans <derick@php.net> | 2003-01-04 12:34:27 +0000 |
| commit | c71f17295cd1d8c8221db19c454ec11bea7cba1c (patch) | |
| tree | 19915660633afedf592b44d9eb5d009dc01ccf61 /ext/pgsql/pgsql.c | |
| parent | 4033a44b95cb3062f9319491c9c9fa642e9dbf79 (diff) | |
| download | php-git-c71f17295cd1d8c8221db19c454ec11bea7cba1c.tar.gz | |
- MFH: 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 91d7b5a294..a8a24193d4 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -2835,7 +2835,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; } @@ -2843,7 +2843,7 @@ static int php_pgsql_flush_query(PGconn *pgsql TSRMLS_DC) PQclear(res); leftover++; } - PQsetnonblocking(pgsql, 0); + PQ_SETNONBLOCKING(pgsql, 0); return leftover; } /* }}} */ |
