php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #50833 PDOStatement::fetchColumn() throws a PDOException when 0 rows returned
Submitted: 2010-01-25 12:42 UTC Modified: 2010-01-27 12:46 UTC
From: thiago@php.net Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: thiago@php.net
New email:
PHP Version: OS:

 

 [2010-01-25 12:42 UTC] thiago@php.net
Description:
------------
According to note 95833, from casey AT yahoo DOT com:

"PDOStatement::fetchColumn() will throw a PDOException if there are zero 
rows returned from the database, and presumably when there's any other 
sort of error encountered."


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-01-27 12:46 UTC] degeberg@php.net
That is incorrect according to my tests.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 20:00:02 2026 UTC