cvs: php4 /pear/DB common.php

From: Date: Fri, 31 Aug 2001 18:36:17 +0000
Subject: cvs: php4 /pear/DB common.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-709@lists.php.net to get a copy of this message
cox Fri Aug 31 14:36:17 2001 EDT Modified files: /php4/pear/DB common.php Log: only register the last query in execute when an error is detected (saves some processing time) Index: php4/pear/DB/common.php diff -u php4/pear/DB/common.php:1.62 php4/pear/DB/common.php:1.63 --- php4/pear/DB/common.php:1.62 Fri Aug 31 14:26:38 2001 +++ php4/pear/DB/common.php Fri Aug 31 14:36:17 2001 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: common.php,v 1.62 2001/08/31 18:26:38 cox Exp $ +// $Id: common.php,v 1.63 2001/08/31 18:36:17 cox Exp $ // // Base class for DB implementations. // @@ -325,7 +325,6 @@ function execute($stmt, $data = false) { - $this->last_query = @$this->prepared_queries[$stmt]; $realquery = $this->executeEmulateQuery($stmt, $data); if (DB::isError($realquery)) { return $realquery; @@ -364,6 +363,7 @@ (!is_array($data) && $qp > 1) || (is_array($data) && $qp > sizeof($data))) { + $this->last_query = $this->prepared_queries[$stmt]; return $this->raiseError(DB_ERROR_NEED_MORE_DATA); }

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