From 4ccb92fcd0bd5bed734265e12fc1bef8a203a774 Mon Sep 17 00:00:00 2001 From: "Frank M. Kromann" Date: Mon, 29 Oct 2001 18:53:52 +0000 Subject: [PATCH] Fixing wrong count on fbsql_num_rows. @fbsql_num_rows now return the correct value on all select statements --- ext/fbsql/php_fbsql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/fbsql/php_fbsql.c b/ext/fbsql/php_fbsql.c index 08c763522cb..bb444a54d00 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);