|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-10 15:32 UTC] wez@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 00:00:01 2025 UTC |
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);