cvs: pear /MDB2/MDB2/Driver ibase.php

From: Date: Sat, 15 Oct 2005 08:42:14 +0000
Subject: cvs: pear /MDB2/MDB2/Driver ibase.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-35568@lists.php.net to get a copy of this message
lsmith Sat Oct 15 04:42:14 2005 EDT Modified files: /pear/MDB2/MDB2/Driver ibase.php Log: - reverted change in getConnection() to allow DSN changing even while in a transaction http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/ibase.php?r1=1.108&r2=1.109&ty=u Index: pear/MDB2/MDB2/Driver/ibase.php diff -u pear/MDB2/MDB2/Driver/ibase.php:1.108 pear/MDB2/MDB2/Driver/ibase.php:1.109 --- pear/MDB2/MDB2/Driver/ibase.php:1.108 Sat Oct 15 04:39:26 2005 +++ pear/MDB2/MDB2/Driver/ibase.php Sat Oct 15 04:42:13 2005 @@ -43,7 +43,7 @@ // | Author: Lorenzo Alberton <l.alberton@quipo.it> | // +----------------------------------------------------------------------+ // -// $Id: ibase.php,v 1.108 2005/10/15 08:39:26 lsmith Exp $ +// $Id: ibase.php,v 1.109 2005/10/15 08:42:13 lsmith Exp $ /** * MDB2 FireBird/InterBase driver @@ -219,14 +219,11 @@ */ function &getConnection() { - if ($this->in_transaction) { - return $this->transaction_id; - } $result = $this->connect(); if (PEAR::isError($result)) { return $result; } - return $this->connection; + return $this->in_transaction ? $this->transaction_id : $this->connection; } // }}}

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