mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fixed bug #76548 pg_fetch_result did not fetch the next row
This commit is contained in:
parent
bf5a802f5a
commit
cb97fd3097
2 changed files with 24 additions and 0 deletions
|
@ -2669,6 +2669,7 @@ PHP_FUNCTION(pg_fetch_result)
|
|||
if (pgsql_row >= PQntuples(pgsql_result)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
pg_result->row++;
|
||||
} else {
|
||||
if (row < 0 || row >= PQntuples(pgsql_result)) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to jump to row " ZEND_LONG_FMT " on PostgreSQL result index " ZEND_LONG_FMT,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue