php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #56400 PDO error description when param is missing
Submitted: 2005-05-24 00:06 UTC Modified: 2005-05-24 10:07 UTC
From: pecl dot php dot net at sharpdreams dot com Assigned:
Status: Wont fix Package: PDO (PECL)
PHP Version: 5_1 CVS-2005-05-24 (dev) OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-05-24 00:06 UTC] pecl dot php dot net at sharpdreams dot com
Description:
------------
When working with PDO and I bind a parameter that doesn't exist, I get this:

Warning:  PDOStatement::execute() [function.execute]: SQLSTATE[HY093]: Invalid parameter number: parameter was not defined in /www/htsup/core/authentication.php on line 16

It would be nice to know WHAT parameter was not defined. Some of my code uses dozens of params, particular large insert/update statements.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-24 10:07 UTC] wez@php.net
That information is not available for the majority of drivers, so we can't do this, sorry.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 06:01:32 2024 UTC