diff options
author | Frank M. Kromann <fmk@php.net> | 2001-11-14 20:42:38 +0000 |
---|---|---|
committer | Frank M. Kromann <fmk@php.net> | 2001-11-14 20:42:38 +0000 |
commit | 3c06e3c4bb35cd8ddcf076e48821b9fe429a5edd (patch) | |
tree | 58bde3ee97aa2645f0f5e7683ca514253f3b08c0 /ext | |
parent | 95d99c9ba9199d663495d5b22d734f50e9a4a45f (diff) | |
download | php-git-3c06e3c4bb35cd8ddcf076e48821b9fe429a5edd.tar.gz |
Prevent fbsql_num_rows from looping
Diffstat (limited to 'ext')
-rw-r--r-- | ext/fbsql/php_fbsql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fbsql/php_fbsql.c b/ext/fbsql/php_fbsql.c index faafa24ccb..f078e6ab75 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 && 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); |