cvs: pear /DB_Table/DB/Table Database.php

From: Date: Sun, 25 Mar 2007 04:13:41 +0000
Subject: cvs: pear /DB_Table/DB/Table Database.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-45413@lists.php.net to get a copy of this message
morse Sun Mar 25 04:13:41 2007 UTC Modified files: /pear/DB_Table/DB/Table Database.php Log: Added error check, lines 2854-2856 http://cvs.php.net/viewvc.cgi/pear/DB_Table/DB/Table/Database.php?r1=1.4&r2=1.5&diff_format=u Index: pear/DB_Table/DB/Table/Database.php diff -u pear/DB_Table/DB/Table/Database.php:1.4 pear/DB_Table/DB/Table/Database.php:1.5 --- pear/DB_Table/DB/Table/Database.php:1.4 Wed Mar 14 18:07:03 2007 +++ pear/DB_Table/DB/Table/Database.php Sun Mar 25 04:13:41 2007 @@ -11,7 +11,7 @@ * @package DB_Table * @author David C. Morse <morse@php.net> * @license http://www.gnu.org/copyleft/lesser.html LGPL - * @version $Id: Database.php,v 1.4 2007/03/14 18:07:03 morse Exp $ + * @version $Id: Database.php,v 1.5 2007/03/25 04:13:41 morse Exp $ */ // {{{ Error code constants @@ -2851,6 +2851,9 @@ // get the result if ($this->_backend == 'mdb2') { $stmt =& $db->prepare($sql); + if (PEAR::isError($stmt)) { + return $stmt; + } $result =& $stmt->execute($params); } else { $result =& $db->query($sql, $params);

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