Bug #52834 [Opn->Csd]: Mistake in example: all rows should be fetched from rowset
| From: | rquadling@php.net | Date: | Tue, 14 Sep 2010 09:41:44 +0000 |
| Subject: | Bug #52834 [Opn->Csd]: Mistake in example: all rows should be fetched from rowset | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-5024@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52834&edit=1
ID: 52834
Updated by: rquadling@php.net
Reported by: samokhinvadim at gmail dot com
Summary: Mistake in example: all rows should be fetched from
rowset
-Status: Open
+Status: Closed
Type: Bug
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: rquadling
Block user comment: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2010-09-14 11:41:28] rquadling@php.net
Automatic comment from SVN on behalf of rquadling
Revision: http://svn.php.net/viewvc/?view=revision&revision=303356
Log: Correct example to fetch all rows from rowset. Fix #52834
------------------------------------------------------------------------
[2010-09-14 09:35:41] samokhinvadim at gmail dot com
Description:
------------
There is a mistake in example here:
$rowset = $stmt->fetch(PDO::FETCH_NUM);
It should be
$rowset = $stmt->fetchAll(PDO::FETCH_NUM);
as all rows shiuld be returned from the current rowset.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52834&edit=1