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
 [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 15:00:02 2026 UTC