]> granicus.if.org Git - php/commitdiff
Fixing wrong count on fbsql_num_rows.
authorFrank M. Kromann <fmk@php.net>
Mon, 29 Oct 2001 18:53:52 +0000 (18:53 +0000)
committerFrank M. Kromann <fmk@php.net>
Mon, 29 Oct 2001 18:53:52 +0000 (18:53 +0000)
@fbsql_num_rows now return the correct value on all select statements

ext/fbsql/php_fbsql.c

index 08c763522cbe360688985a28fd1516831bd94644..bb444a54d0092074444f075705e0a9ce901e7772 100644 (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);