php.net |  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
 [2005-08-08 13:39 UTC] bmansion at mamasam dot com
Description:
------------
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');
$stmt->setFetchMode(PDO_FETCH_NAMED);




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-10 15:32 UTC] wez@php.net
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 pecl.php.net.

In case this was a pecl.php.net 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: Sat Dec 21 14:01:32 2024 UTC