cvs: pear /HTTP_Session2/HTTP/Session2/Container MDB2.php

From: Date: Tue, 01 Apr 2008 15:28:44 +0000
Subject: cvs: pear /HTTP_Session2/HTTP/Session2/Container MDB2.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-51764@lists.php.net to get a copy of this message
till Tue Apr 1 15:28:44 2008 UTC Modified files: /pear/HTTP_Session2/HTTP/Session2/Container MDB2.php Log: * fixed leftovers * removed old code from DB driver, DB_Error (oops) * now throwing HTTP_Session2_Exception for all errors http://cvs.php.net/viewvc.cgi/pear/HTTP_Session2/HTTP/Session2/Container/MDB2.php?r1=1.16&r2=1.17&diff_format=u Index: pear/HTTP_Session2/HTTP/Session2/Container/MDB2.php diff -u pear/HTTP_Session2/HTTP/Session2/Container/MDB2.php:1.16 pear/HTTP_Session2/HTTP/Session2/Container/MDB2.php:1.17 --- pear/HTTP_Session2/HTTP/Session2/Container/MDB2.php:1.16 Sun Feb 17 13:23:51 2008 +++ pear/HTTP_Session2/HTTP/Session2/Container/MDB2.php Tue Apr 1 15:28:44 2008 @@ -8,7 +8,7 @@ * @package HTTP_Session2 * @author Till Klampaeckel <till@php.net> * @license http://www.opensource.org/licenses/bsd-license.php The BSD License - * @version CVS: $Id: MDB2.php,v 1.16 2008/02/17 13:23:51 till Exp $ + * @version CVS: $Id: MDB2.php,v 1.17 2008/04/01 15:28:44 till Exp $ * @link http://pear.php.net/package/HTTP_Session2 */ @@ -214,8 +214,8 @@ $result = $this->db->queryOne($query); if (MDB2::isError($result)) { - new DB_Error($result->code, PEAR_ERROR_DIE); - return false; + throw new HTTP_Session2_Exception($result->getUserInfo(), + $result->getCode()); } if (0 == intval($result)) { /* Insert new row into table */ @@ -239,8 +239,8 @@ } $result = $this->db->query($query); if (MDB2::isError($result)) { - new DB_Error($result->code, PEAR_ERROR_DIE); - return false; + throw new HTTP_Session2_Exception($result->getUserInfo(), + $result->getCode()); } return true; }

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