dickmeiss Mon Feb 19 09:06:39 2001 EDT
Modified files:
/php4/ext/yaz php_yaz.c
Log:
Bug fix: number of records in yaz_range wrongly set to zero.
Index: php4/ext/yaz/php_yaz.c
diff -u php4/ext/yaz/php_yaz.c:1.10 php4/ext/yaz/php_yaz.c:1.11
--- php4/ext/yaz/php_yaz.c:1.10 Tue Feb 13 12:02:52 2001
+++ php4/ext/yaz/php_yaz.c Mon Feb 19 09:06:39 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_yaz.c,v 1.10 2001/02/13 20:02:52 dickmeiss Exp $ */
+/* $Id: php_yaz.c,v 1.11 2001/02/19 17:06:39 dickmeiss Exp $ */
#include "php.h"
@@ -360,10 +360,11 @@
t->resultSets->recordList->records[i] = 0;
if (t->numberOfRecordsRequested + t->resultSetStartPoint-1 >
t->resultSets->resultCount)
- t->numberOfRecordsRequested =
t->resultSets->resultCount -
- t->resultSetStartPoint + 1;
- t->resultSets->recordList->num_records =
- t->numberOfRecordsRequested;
+ t->resultSets->recordList->num_records =
+ t->resultSets->resultCount -
+t->resultSetStartPoint + 1;
+ else
+ t->resultSets->recordList->num_records =
+ t->numberOfRecordsRequested;
}
if (sr && sr->which == Z_Records_DBOSD)
{
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]