cox             Wed Apr  4 15:55:10 2001 EDT

  Modified files:              
    /php4/pear/DB       pgsql.php 
  Log:
  
  as the row counter starts with 0, last row is before numrows
  
  
Index: php4/pear/DB/pgsql.php
diff -u php4/pear/DB/pgsql.php:1.36 php4/pear/DB/pgsql.php:1.37
--- php4/pear/DB/pgsql.php:1.36 Mon Apr  2 20:33:58 2001
+++ php4/pear/DB/pgsql.php      Wed Apr  4 15:55:09 2001
@@ -91,7 +91,7 @@
             }
             $connstr = 'host=' . $dsninfo['hostspec'] . ' port=' . $port;
         }
-        
+
         if (isset($dsninfo['database'])) {
             $connstr .= ' dbname=' . $dsninfo['database'];
         }
@@ -263,7 +263,7 @@
     function fetchInto($result, &$row, $fetchmode, $rownum=null)
     {
         $rownum = ($rownum !== null) ? $rownum : $this->row[$result];
-        if ($rownum > $this->num_rows[$result]) {
+        if ($rownum >= $this->num_rows[$result]) {
             return null;
         }
         if ($fetchmode & DB_FETCHMODE_ASSOC) {



-- 
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]

Reply via email to