cvs: pear /MDB2/MDB2/Driver/Native pgsql.php

From: Date: Fri, 14 Oct 2005 16:31:05 +0000
Subject: cvs: pear /MDB2/MDB2/Driver/Native pgsql.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-35532@lists.php.net to get a copy of this message
lsmith Fri Oct 14 12:31:05 2005 EDT Modified files: /pear/MDB2/MDB2/Driver/Native pgsql.php Log: - use getConnection() http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Native/pgsql.php?r1=1.7&r2=1.8&ty=u Index: pear/MDB2/MDB2/Driver/Native/pgsql.php diff -u pear/MDB2/MDB2/Driver/Native/pgsql.php:1.7 pear/MDB2/MDB2/Driver/Native/pgsql.php:1.8 --- pear/MDB2/MDB2/Driver/Native/pgsql.php:1.7 Tue Jul 12 07:07:56 2005 +++ pear/MDB2/MDB2/Driver/Native/pgsql.php Fri Oct 14 12:31:05 2005 @@ -42,7 +42,7 @@ // | Author: Paul Cooper <pgc@ucecom.com> | // +----------------------------------------------------------------------+ // -// $Id: pgsql.php,v 1.7 2005/07/12 11:07:56 lsmith Exp $ +// $Id: pgsql.php,v 1.8 2005/10/14 16:31:05 lsmith Exp $ /** * MDB2 PostGreSQL driver for the native module @@ -70,7 +70,12 @@ return $db; } - if (!@pg_lo_unlink($db->connection, $OID)) { + $connection = $db->getConnection(); + if (PEAR::isError($connection)) { + return $connection; + } + + if (!@pg_lo_unlink($connection, $OID)) { return $db->raiseError(); } return MDB2_OK;

« previous php.pear.cvs (#35532) next »