diff options
| author | foobar <sniper@php.net> | 2003-02-20 07:10:07 +0000 |
|---|---|---|
| committer | foobar <sniper@php.net> | 2003-02-20 07:10:07 +0000 |
| commit | 0f593f899f6b6839163a88f2a83edc273678d585 (patch) | |
| tree | 80a5502b1b1efc5924cd0a5db49a2bb67929721a /ext/pgsql/pgsql.c | |
| parent | 57d244c93db6a7216f8d9c175b9ef257c419956b (diff) | |
| download | php-git-0f593f899f6b6839163a88f2a83edc273678d585.tar.gz | |
Fixed bug: #22306 (pg_lo_seek($h, 0, PGSQL_SEEK_SET) succeeds but returns false)
Diffstat (limited to 'ext/pgsql/pgsql.c')
| -rw-r--r-- | ext/pgsql/pgsql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 8813bc60bc..5295228185 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -2204,7 +2204,7 @@ PHP_FUNCTION(pg_lo_seek) ZEND_FETCH_RESOURCE(pgsql, pgLofp *, &pgsql_id, -1, "PostgreSQL large object", le_lofp); - if (lo_lseek((PGconn *)pgsql->conn, pgsql->lofd, offset, whence )) { + if (lo_lseek((PGconn *)pgsql->conn, pgsql->lofd, offset, whence ) > -1) { RETURN_TRUE; } else { RETURN_FALSE; |
