1
0
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:
Frank M. Kromann
2001-10-29 18:53:52 +00:00
parent 0a682c6d70
commit 4ccb92fcd0

View File

@@ -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);