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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Fri Oct 09 01:00:01 2026 UTC