php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #48053 PDO bindValue/execute enhancement
Submitted: 2009-04-22 19:01 UTC Modified: 2011-01-02 02:37 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: rolf at winmutt dot com Assigned:
Status: Open Package: PDO related
PHP Version: 5.2.9 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rolf at winmutt dot com
New email:
PHP Version: OS:

 

 [2009-04-22 19:01 UTC] rolf at winmutt dot com
Description:
------------
It would be swell if bindValue returned false when attempting to bind a named parameter that does not exist. Failing that it would swell if execute allowed more values than named parameters, only using the values for named parameters that exist in the argument.

$s=$dbh->prepare('INSERT INTO foo VALUES(:bar)');
$s->bindValue(':fubar', 2); // == false
$s->execute(array(':bar'=>1, ':fubar'=>2));


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-02 02:37 UTC] jani@php.net
-Package: Feature/Change Request +Package: PDO related
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 04:01:31 2024 UTC