using pg_lo_import with DB?
| From: | Graham Clarke | Date: | Tue, 11 Oct 2005 20:34:25 +0000 |
| Subject: | using pg_lo_import with DB? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-21371@lists.php.net to get a copy of this message | ||
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;
Thanks
Graham
--
Graham Clarke
grahamc@53tech.com
www.53tech.com
603.643.9955