Re: pdo bindParam() with named parameters
| From: | Wez Furlong | Date: | Thu, 10 Feb 2005 15:43:13 +0000 |
| Subject: | Re: pdo bindParam() with named parameters | ||
| References: | 1 2 3 4 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-1951@lists.php.net to get a copy of this message | ||
Dan is on the right wavelength.
It's designed to be explicit. Being explicit is a good habit, IMNSHO.
I *really* don't want to change this. There are really good technical
reasons why this is the way it is. It's future proof to be explicit
(I've already hinted at @ prefixes for some RDBMS coming soon).
--Wez.
On Thu, 10 Feb 2005 14:31:48 +0100, Edin Kadribasic <edink@emini.dk>
> I agree that it would be more intuitive to use array keys without ":". From my
> own experience with first time PDO users on #php.pecl the issue comes up
> quite often because people assume that you would use ":field" placeholder and
> the query but "field" as array key.
>
> Wez, how about changing this behaviour?