summaryrefslogtreecommitdiff
path: root/ext/fbsql/php_fbsql.c
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2001-10-29 18:53:52 +0000
committerFrank M. Kromann <fmk@php.net>2001-10-29 18:53:52 +0000
commit4ccb92fcd0bd5bed734265e12fc1bef8a203a774 (patch)
tree3ae6764b57306c69a6406b19fc5af765a3d208af /ext/fbsql/php_fbsql.c
parent0a682c6d7019c6f8fe97b1eb46527c0608686d16 (diff)
downloadphp-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.c2
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);