]> granicus.if.org Git - php/commitdiff
Prevent fbsql_num_rows from looping
authorFrank M. Kromann <fmk@php.net>
Wed, 14 Nov 2001 20:42:38 +0000 (20:42 +0000)
committerFrank M. Kromann <fmk@php.net>
Wed, 14 Nov 2001 20:42:38 +0000 (20:42 +0000)
ext/fbsql/php_fbsql.c

index faafa24ccb0e806dc662ea9b90b432e66aa985d5..f078e6ab75fe313f96edb3f9f92957b650a63955 100644 (file)
@@ -639,7 +639,7 @@ int phpfbFetchRow(PHPFBResult* result, int row)
        for (;;)
        {
                void *rawData; 
-               if (row >= result->rowCount && row != 0x7fffffff) return 0;
+               if (row >= result->rowCount && result->rowCount != 0x7fffffff) 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);