old mode 100755
new mode 100644
| | |
| | | // +----------------------------------------------------------------------+ |
| | | // | PHP versions 4 and 5 | |
| | | // +----------------------------------------------------------------------+ |
| | | // | Copyright (c) 1998-2004 Manuel Lemos, Tomas V.V.Cox, | |
| | | // | Copyright (c) 1998-2006 Manuel Lemos, Tomas V.V.Cox, | |
| | | // | Stig. S. Bakken, Lukas Smith | |
| | | // | All rights reserved. | |
| | | // +----------------------------------------------------------------------+ |
| | |
| | | // | Author: Paul Cooper <pgc@ucecom.com> | |
| | | // +----------------------------------------------------------------------+ |
| | | // |
| | | // $Id$ |
| | | // $Id: pgsql.php,v 1.12 2006/07/15 13:07:15 lsmith Exp $ |
| | | |
| | | require_once 'MDB2/Driver/Native/Common.php'; |
| | | |
| | | /** |
| | | * MDB2 PostGreSQL driver for the native module |
| | |
| | | * @category Database |
| | | * @author Paul Cooper <pgc@ucecom.com> |
| | | */ |
| | | class MDB2_Driver_Native_pgsql extends MDB2_Module_Common |
| | | class MDB2_Driver_Native_pgsql extends MDB2_Driver_Native_Common |
| | | { |
| | | // }}} |
| | | // {{{ deleteOID() |
| | |
| | | return $db; |
| | | } |
| | | |
| | | if (!@pg_lo_unlink($db->connection, $OID)) { |
| | | return $db->raiseError(); |
| | | $connection = $db->getConnection(); |
| | | if (PEAR::isError($connection)) { |
| | | return $connection; |
| | | } |
| | | |
| | | if (!@pg_lo_unlink($connection, $OID)) { |
| | | return $db->raiseError(null, null, null, |
| | | 'Unable to unlink OID: '.$OID, __FUNCTION__); |
| | | } |
| | | return MDB2_OK; |
| | | } |