|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56481 setFetchMode() and PDO_FETCH_NAMED
Submitted: 2005-08-08 13:39 UTC Modified: 2005-09-10 15:32 UTC
From: bmansion at mamasam dot com Assigned: wez (profile)
Status: Closed Package: PDO (PECL)
PHP Version: 5_1 CVS-2005-08-08 (dev) OS: MacOSX 10.4
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:
Solve the problem:
34 + 38 = ?
Subscribe to this entry?

 [2005-08-08 13:39 UTC] bmansion at mamasam dot com
Using setFetchMode() with PDO_FETCH_NAMED returns the following error:

SQLSTATE[22003]: Numeric value out of range: mode is out of range

I use PDO 0.9 with the drivers from the latest release.
This was tested with the MySQL driver only, I don't know about others.

Reproduce code:
$pdo = new PDO('mysql:dbname=database;host=localhost', 'root', 'root');
$stmt = $pdo->prepare('SELECT * FROM products, options');


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-10 15:32 UTC]
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

Fixed on the tip of the 5.1 branch
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 08:01:31 2024 UTC