Re: using pg_lo_import with DB?

From: Date: Wed, 12 Oct 2005 06:36:46 +0000
Subject: Re: using pg_lo_import with DB?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21381@lists.php.net to get a copy of this message
Graham Clarke wrote:
Hi - Has anyone tried to use pg_lo_import or lo_import with PEAR::DB? I was hoping to do the following, but it doesn't work. $this->sql->db is our DB object, $imagefile = the full path to the file $this->sql->db->autocommit(false); $oid = pg_lo_import($this->sql->db, $imagefile); // commit transaction $this->sql->db->commit;
$this->sql->db->connection might work .. or you just use MDB2 which has support LOB inserting into OID's regards, Lukas

« previous php.pear.general (#21381) next »