Re: PDO API (was: pdo: binding variables supplied to execute() is NotVeryUseful(tm)...)
| From: | Derick Rethans | Date: | Wed, 27 Apr 2005 16:31:14 +0000 |
| Subject: | Re: PDO API (was: pdo: binding variables supplied to execute() is NotVeryUseful(tm)...) | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-16119@lists.php.net to get a copy of this message | ||
On Mon, 25 Apr 2005, Wez Furlong wrote:
> On 4/25/05, Lukas Smith <lsmith@php.net> wrote:
> > I also noticed that bindParam() and bindColumn() are 1-indexed, which
> > will raise inconviniences with people using arrays for example to stored
> > the numeric indexes
>
> Passing an array with numeric indices to execute() expects 0 based
> indices, to cater for this case. Manually calling a bind function
> expects 1 based indices, as this is the convention for the majority of
> database APIs.
But it's totally not what PHP does now. Everything is 0 based so why
make it *harder* for users by requiring a 1-based index here?
regards,
Derick
--
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org