cvs: pear /LiveUser/Perm/Storage PDO.php

From: Date: Mon, 27 Mar 2006 10:02:52 +0000
Subject: cvs: pear /LiveUser/Perm/Storage PDO.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-39369@lists.php.net to get a copy of this message
lsmith Mon Mar 27 10:02:52 2006 UTC Modified files: /pear/LiveUser/Perm/Storage PDO.php Log: - fixed issues in implied right fetching http://cvs.php.net/viewcvs.cgi/pear/LiveUser/Perm/Storage/PDO.php?r1=1.10&r2=1.11&diff_format=u Index: pear/LiveUser/Perm/Storage/PDO.php diff -u pear/LiveUser/Perm/Storage/PDO.php:1.10 pear/LiveUser/Perm/Storage/PDO.php:1.11 --- pear/LiveUser/Perm/Storage/PDO.php:1.10 Fri Mar 24 13:13:17 2006 +++ pear/LiveUser/Perm/Storage/PDO.php Mon Mar 27 10:02:52 2006 @@ -40,7 +40,7 @@ * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2006 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: PDO.php,v 1.10 2006/03/24 13:13:17 lsmith Exp $ + * @version CVS: $Id: PDO.php,v 1.11 2006/03/27 10:02:52 lsmith Exp $ * @link http://pear.php.net/LiveUser */ @@ -163,9 +163,9 @@ return false; } - $row = $result->fetchAll(PDO::FETCH_ASSOC); + $row = $result->fetch(PDO::FETCH_ASSOC); - return $row[0]; + return $row; } /** @@ -423,7 +423,7 @@ $rows = array(); while ($row = $result->fetch(PDO::FETCH_NUM)) { - $rows[$row[0]] = $row[1]; + $rows[$row[0]][] = $row[1]; } return $rows; @@ -463,12 +463,9 @@ return false; } - $rows = array(); - while ($row = $result->fetch(PDO::FETCH_NUM)) { - $rows[$row[0]] = $row[1]; - } + $rows = $result->fetchAll(PDO::FETCH_ASSOC); - return $rows; + return (array)$rows; } /**

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