diff options
author | Frank M. Kromann <fmk@php.net> | 2001-10-29 18:53:52 +0000 |
---|---|---|
committer | Frank M. Kromann <fmk@php.net> | 2001-10-29 18:53:52 +0000 |
commit | 4ccb92fcd0bd5bed734265e12fc1bef8a203a774 (patch) | |
tree | 3ae6764b57306c69a6406b19fc5af765a3d208af /ext/fbsql/php_fbsql.c | |
parent | 0a682c6d7019c6f8fe97b1eb46527c0608686d16 (diff) | |
download | php-git-4ccb92fcd0bd5bed734265e12fc1bef8a203a774.tar.gz |
Fixing wrong count on fbsql_num_rows.
@fbsql_num_rows now return the correct value on all select statements
Diffstat (limited to 'ext/fbsql/php_fbsql.c')
-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 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); |