Re: PDO statement execute enhancement
| From: | Marian Kostadinov | Date: | Thu, 10 Aug 2006 10:40:05 +0000 |
| Subject: | Re: PDO statement execute enhancement | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-25278@lists.php.net to get a copy of this message | ||
This code here
http://lxr.php.net/source/php-src/ext/pdo/pdo_stmt.c#301
is maybe the point where a solution can be provided checking for
param <http://lxr.php.net/ident?i=param>->paramno == -1 is enough to
detect an incorrect parameter and silently
ignore it or emit a notice.
2006/8/9, Lukas Smith <lsmith@php.net>:
Marian Kostadinov wrote: Yes, that's my idea - to ignore keys that are not defined as placeholder. And not only for objects but for arrays also. I do not know the implementation in PDO, but the implementation I made in MDB2 only tries to parse the placeholders if it has to emulate or detects that a placeholder type is used that needs to be rewritten for the given RDBMS. If PDO has a similar implementation it would mean now that PDO always has to parse the entire query to determine which keys to ignore. I feel this is suboptimal and therefore I would be opposed to this change. regards, Lukas -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php