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
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: pecl dot php dot net at sharpdreams dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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 Dec 27 14:01:29 2024 UTC