cvs: pear /DB_DataObject DataObject.php
| From: | Alan Knowles | Date: | Tue, 25 Oct 2005 03:12:10 +0000 |
| Subject: | cvs: pear /DB_DataObject DataObject.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-35830@lists.php.net to get a copy of this message | ||
alan_k Mon Oct 24 23:12:10 2005 EDT
Modified files:
/pear/DB_DataObject DataObject.php
Log:
fix bug #5065 - count returns number cast to an integer (even though database may return a string)
http://cvs.php.net/diff.php/pear/DB_DataObject/DataObject.php?r1=1.383&r2=1.384&ty=u
Index: pear/DB_DataObject/DataObject.php
diff -u pear/DB_DataObject/DataObject.php:1.383 pear/DB_DataObject/DataObject.php:1.384
--- pear/DB_DataObject/DataObject.php:1.383 Wed Oct 12 00:00:06 2005
+++ pear/DB_DataObject/DataObject.php Mon Oct 24 23:12:08 2005
@@ -15,7 +15,7 @@
* @author Alan Knowles <alan@akbkhome.com>
* @copyright 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: DataObject.php,v 1.383 2005/10/12 04:00:06 alan_k Exp $
+ * @version CVS: $Id: DataObject.php,v 1.384 2005/10/25 03:12:08 alan_k Exp $
* @link http://pear.php.net/package/DB_DataObject
*/
@@ -1515,7 +1515,7 @@
$result = &$_DB_DATAOBJECT['RESULTS'][$t->_DB_resultid];
$l = $result->fetchRow(DB_DATAOBJECT_FETCHMODE_ORDERED);
- return $l[0];
+ return (int) $l[0];
}
/**