alecpl
2008-09-13 c0249205b236fd2ce772b51d1087e080b35ced7f
program/lib/MDB2/Driver/Native/pgsql.php
old mode 100755 new mode 100644
@@ -2,7 +2,7 @@
// +----------------------------------------------------------------------+
// | 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.                                                 |
// +----------------------------------------------------------------------+
@@ -42,7 +42,9 @@
// | 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
@@ -51,7 +53,7 @@
 * @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()
@@ -70,8 +72,14 @@
            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;
    }