cvs: pear /MDB pgsql.php
| From: | Lukas Smith | Date: | Thu, 18 Jul 2002 10:19:18 +0000 |
| Subject: | cvs: pear /MDB pgsql.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-5173@lists.php.net to get a copy of this message | ||
lsmith Thu Jul 18 06:19:18 2002 EDT
Modified files:
/pear/MDB pgsql.php
Log:
fixed a bug in nextId() and currId() due to API changes
Index: pear/MDB/pgsql.php
diff -u pear/MDB/pgsql.php:1.8 pear/MDB/pgsql.php:1.9
--- pear/MDB/pgsql.php:1.8 Wed Jul 17 10:40:32 2002
+++ pear/MDB/pgsql.php Thu Jul 18 06:19:18 2002
@@ -42,7 +42,7 @@
// | Author: Paul Cooper <pgc@ucecom.com> |
// +----------------------------------------------------------------------+
-// $Id: pgsql.php,v 1.8 2002/07/17 14:40:32 lsmith Exp $
+// $Id: pgsql.php,v 1.9 2002/07/18 10:19:18 lsmith Exp $
// MDB postgresql driver.
@@ -1124,7 +1124,7 @@
if (MDB::isError($result)) {
return $this->raiseError($result);
}
- $this->fetchInto($result, $arr, DB_FETCHMODE_ORDERED);
+ $arr = $this->fetchInto($result, DB_FETCHMODE_ORDERED);
$this->freeResult($result);
return ($arr[0]);
}
@@ -1145,10 +1145,10 @@
return (0);
}
if ($this->numRows($result) == 0) {
- $this->FreeResult($result);
+ $this->freeResult($result);
return ($this->SetError("Get sequence current value", "could not find
value in sequence table"));
}
- $value = intval($this->fetchResult($result, 0, 0));
+ $value = intval($this->fetch($result, 0, 0));
$this->freeResult($result);
return ($value);
}
@@ -1389,4 +1389,4 @@
}
}
-?>
+?>
\ No newline at end of file