cvs: pear /DB_DataObject DataObject.php

From: Date: Tue, 02 Aug 2005 13:27:05 +0000
Subject: cvs: pear /DB_DataObject DataObject.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-33520@lists.php.net to get a copy of this message
alan_k Tue Aug 2 09:27:05 2005 EDT Modified files: /pear/DB_DataObject DataObject.php Log: fix bug #4968 - count() will not be affected by changing default db fetchmode http://cvs.php.net/diff.php/pear/DB_DataObject/DataObject.php?r1=1.366&r2=1.367&ty=u Index: pear/DB_DataObject/DataObject.php diff -u pear/DB_DataObject/DataObject.php:1.366 pear/DB_DataObject/DataObject.php:1.367 --- pear/DB_DataObject/DataObject.php:1.366 Mon Jul 25 01:22:25 2005 +++ pear/DB_DataObject/DataObject.php Tue Aug 2 09:27:03 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.366 2005/07/25 05:22:25 alan_k Exp $ + * @version CVS: $Id: DataObject.php,v 1.367 2005/08/02 13:27:03 alan_k Exp $ * @link http://pear.php.net/package/DB_DataObject */ @@ -91,10 +91,10 @@ require_once 'PEAR.php'; /** - * We are setting a global fetchmode assoc constant of 2 to be compatible with + * We are duping fetchmode constants to be compatible with * both DB and MDB2 */ - +define('DB_DATAOBJECT_FETCHMODE_ORDERED',1); define('DB_DATAOBJECT_FETCHMODE_ASSOC',2); @@ -1499,7 +1499,7 @@ } $result = &$_DB_DATAOBJECT['RESULTS'][$t->_DB_resultid]; - $l = $result->fetchRow(); + $l = $result->fetchRow(DB_DATAOBJECT_FETCHMODE_ORDERED); return $l[0]; }

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