cvs: pear /DB_QueryTool package.xml /DB_QueryTool/QueryTool Result.php /DB_QueryTool/QueryTool/Result Object.php

From: Date: Mon, 01 May 2006 15:47:27 +0000
Subject: cvs: pear /DB_QueryTool package.xml /DB_QueryTool/QueryTool Result.php /DB_QueryTool/QueryTool/Result Object.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-39938@lists.php.net to get a copy of this message
quipo Mon May 1 15:47:27 2006 UTC Modified files: /pear/DB_QueryTool/QueryTool Result.php /pear/DB_QueryTool/QueryTool/Result Object.php /pear/DB_QueryTool package.xml Log: fixed DB_QueryTool_Result_Object::fetchRow() when the return type is a scalar value instead of an array (bug #7532) http://cvs.php.net/viewcvs.cgi/pear/DB_QueryTool/QueryTool/Result.php?r1=1.9&r2=1.10&diff_format=u Index: pear/DB_QueryTool/QueryTool/Result.php diff -u pear/DB_QueryTool/QueryTool/Result.php:1.9 pear/DB_QueryTool/QueryTool/Result.php:1.10 --- pear/DB_QueryTool/QueryTool/Result.php:1.9 Thu Jan 26 17:27:46 2006 +++ pear/DB_QueryTool/QueryTool/Result.php Mon May 1 15:47:27 2006 @@ -34,7 +34,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2003-2006 Wolfram Kriesing, Paolo Panto, Lorenzo Alberton * @license http://www.debian.org/misc/bsd.license BSD License (3 Clause) - * @version CVS: $Id: Result.php,v 1.9 2006/01/26 17:27:46 quipo Exp $ + * @version CVS: $Id: Result.php,v 1.10 2006/05/01 15:47:27 quipo Exp $ * @link http://pear.php.net/package/DB_QueryTool */ @@ -239,11 +239,9 @@ */ function fetchRow() { - if ($this->hasMore()) { - $arr = $this->getNext(); - if (!PEAR::isError($arr)) { - return $arr; - } + $arr = $this->getNext(); + if (!PEAR::isError($arr)) { + return $arr; } return false; } http://cvs.php.net/viewcvs.cgi/pear/DB_QueryTool/QueryTool/Result/Object.php?r1=1.4&r2=1.5&diff_format=u Index: pear/DB_QueryTool/QueryTool/Result/Object.php diff -u pear/DB_QueryTool/QueryTool/Result/Object.php:1.4 pear/DB_QueryTool/QueryTool/Result/Object.php:1.5 --- pear/DB_QueryTool/QueryTool/Result/Object.php:1.4 Thu Jan 26 17:27:46 2006 +++ pear/DB_QueryTool/QueryTool/Result/Object.php Mon May 1 15:47:27 2006 @@ -32,7 +32,7 @@ * @author Roman Dostovalov, Com-tec-so S.A.<roman.dostovalov@ctco.lv> * @copyright 2004-2006 Roman Dostovalov * @license http://www.debian.org/misc/bsd.license BSD License (3 Clause) - * @version CVS: $Id: Object.php,v 1.4 2006/01/26 17:27:46 quipo Exp $ + * @version CVS: $Id: Object.php,v 1.5 2006/05/01 15:47:27 quipo Exp $ * @link http://pear.php.net/package/DB_QueryTool */ @@ -93,6 +93,9 @@ { $arr = $this->getNext(); if (!PEAR::isError($arr)) { + if (is_scalar($arr)) { + return $arr; + } $row = new DB_QueryTool_Result_Row($arr); return $row; } http://cvs.php.net/viewcvs.cgi/pear/DB_QueryTool/package.xml?r1=1.37&r2=1.38&diff_format=u Index: pear/DB_QueryTool/package.xml diff -u pear/DB_QueryTool/package.xml:1.37 pear/DB_QueryTool/package.xml:1.38 --- pear/DB_QueryTool/package.xml:1.37 Thu Jan 26 17:27:46 2006 +++ pear/DB_QueryTool/package.xml Mon May 1 15:47:27 2006 @@ -33,13 +33,13 @@ </maintainers> <release> - <version>1.0.2</version> + <version>1.0.3</version> <license>BSD</license> <state>stable</state> - <date>2006-01-26</date> + <date>2006-05-01</date> <notes> -* changed license to BSD -* fixed bug with big integers being incorrectly trimmed +* fixed DB_QueryTool_Result_Object::fetchRow() when the return type is + a scalar value instead of an array (bug #7532) </notes> <filelist> <dir name="/" baseinstalldir="DB"> @@ -105,6 +105,16 @@ <changelog> <release> + <version>1.0.3</version> + <license>BSD</license> + <state>stable</state> + <date>2006-05-01</date> + <notes> +* fixed DB_QueryTool_Result_Object::fetchRow() when the return type is + a scalar value instead of an array (bug #7532) + </notes> + </release> + <release> <version>1.0.2</version> <license>BSD</license> <state>stable</state>

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