php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #69775 fetchColumn() example is misleading
Submitted: 2015-06-08 19:34 UTC Modified: 2015-06-09 07:08 UTC
From: cmb@php.net Assigned: sobak (profile)
Status: Closed Package: PDO Core
PHP Version: Irrelevant OS: n/a
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
8 - 1 = ?
Subscribe to this entry?

 
 [2015-06-08 19:34 UTC] cmb@php.net
Description:
------------
---
From manual page: http://www.php.net/pdostatement.fetchcolumn
---

As can be seen from the user contributes notes, example#1 on the
PDOStatement::fetchColumn man page is apparently misleading. It
might be best to change it (see attached patch
fetchcolumn-example).

Then the following notes can be deleted:
 * <http://php.net/manual/en/pdostatement.fetchcolumn.php#115694>
 * <http://php.net/manual/en/pdostatement.fetchcolumn.php#117420>
 * <http://php.net/manual/en/pdostatement.fetchcolumn.php#116646>


Patches

fetchcolumn-example (last revision 2015-06-08 19:34 UTC by cmb)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-06-08 19:34 UTC] cmb@php.net
-Package: PDO SQLite +Package: PDO Core
 [2015-06-09 07:07 UTC] sobak@php.net
Automatic comment from SVN on behalf of sobak
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=336896
Log: Close bug #69775 (fetchColumn() example is misleading)

Patch by cmb
 [2015-06-09 07:08 UTC] sobak@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: sobak
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 19:01:28 2024 UTC