From: Frank M. Kromann Date: Mon, 29 Oct 2001 18:53:52 +0000 (+0000) Subject: Fixing wrong count on fbsql_num_rows. X-Git-Tag: ChangeLog~487 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ccb92fcd0bd5bed734265e12fc1bef8a203a774;p=php Fixing wrong count on fbsql_num_rows. @fbsql_num_rows now return the correct value on all select statements --- diff --git a/ext/fbsql/php_fbsql.c b/ext/fbsql/php_fbsql.c index 08c763522c..bb444a54d0 100644 --- a/ext/fbsql/php_fbsql.c +++ b/ext/fbsql/php_fbsql.c @@ -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);