mirror of
https://github.com/php/php-src.git
synced 2026-04-09 09:03:04 +02:00
Fixing wrong count on fbsql_num_rows.
@fbsql_num_rows now return the correct value on all select statements
This commit is contained in:
@@ -639,7 +639,7 @@ int phpfbFetchRow(PHPFBResult* result, int row)
|
||||
for (;;)
|
||||
{
|
||||
void *rawData;
|
||||
if (row >= result->rowCount) return 0;
|
||||
if (row > result->rowCount) return 0;
|
||||
if (fbcrhRowCount(result->rowHandler) > (unsigned int)row) return 1;
|
||||
rawData = fbcdcFetch(result->link->connection, result->batchSize, result->fetchHandle);
|
||||
if (!fbcrhAddBatch(result->rowHandler, rawData)) result->rowCount = fbcrhRowCount(result->rowHandler);
|
||||
|
||||
Reference in New Issue
Block a user