cvs: php4 /ext/fbsql php_fbsql.c

From: Date: Mon, 29 Oct 2001 21:40:49 +0000
Subject: cvs: php4 /ext/fbsql php_fbsql.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-8027@lists.php.net to get a copy of this message
fmk Mon Oct 29 16:40:49 2001 EDT Modified files: /php4/ext/fbsql php_fbsql.c Log: A more acurate fix to the fbsql_num_rows function returning x7fffffff when the server is unable to tell the number of rows. Index: php4/ext/fbsql/php_fbsql.c diff -u php4/ext/fbsql/php_fbsql.c:1.63 php4/ext/fbsql/php_fbsql.c:1.64 --- php4/ext/fbsql/php_fbsql.c:1.63 Mon Oct 29 16:27:31 2001 +++ php4/ext/fbsql/php_fbsql.c Mon Oct 29 16:40:48 2001 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_fbsql.c,v 1.63 2001/10/29 21:27:31 fmk Exp $ */ +/* $Id: php_fbsql.c,v 1.64 2001/10/29 21:40:48 fmk Exp $ */ /* TODO: * @@ -467,7 +467,7 @@ /* sprintf(buf, "%ld", FB_SQL_G(resultCount)); - php_info_print_table_row(2, "Active Links", buf); + php_info_print_table_row(2, "Active Results", buf); */ php_info_print_table_end(); @@ -639,7 +639,7 @@ for (;;) { void *rawData; - if (row > result->rowCount) return 0; + if (row >= result->rowCount && row != 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);

« previous php.cvs (#8027) next »