Index: pgsql.php =================================================================== RCS file: /repository/pear/MDB/pgsql.php,v retrieving revision 1.10 diff -u -r1.10 pgsql.php --- pgsql.php 18 Jul 2002 11:40:41 -0000 1.10 +++ pgsql.php 18 Jul 2002 14:33:32 -0000 @@ -850,11 +850,12 @@ */ function getLobValue($prepared_query, $parameter, $lob) { - if (!$this->connect()) { - return (0); + $connect = $this->connect(); + if (MDB::isError($connect)) { + return $connect; } if ($this->auto_commit && !@pg_Exec($this->connection, "BEGIN")) { - return (0); + return $this->raiseError(DB_ERROR, NULL, NULL, 'getLobValue: error starting transaction'); } $success = 1; if (($lo = pg_locreate($this->connection))) { @@ -919,13 +920,13 @@ * * @param resource $prepared_query query handle from prepare() * @param string $blob - * @param string $value * * @access private */ - function freeClobValue($prepared_query, $clob, &$value) + function freeClobValue($prepared_query, $clob) { - pg_lounlink($this->connection, intval($value)); + unset($this->lobs[$clob]); + return DB_OK; } // }}} @@ -955,13 +956,13 @@ * * @param resource $prepared_query query handle from prepare() * @param string $blob - * @param string $value * * @access private */ - function freeBlobValue($prepared_query, $blob, &$value) + function freeBlobValue($prepared_query, $blob) { - pg_lounlink($this->connection, intval($value)); + unset($this->lobs[$blob]); + return DB_OK; } // }}}