Re: pdo bindParam() with named parameters
| From: | Wez Furlong | Date: | Fri, 11 Feb 2005 00:13:17 +0000 |
| Subject: | Re: pdo bindParam() with named parameters | ||
| References: | 1 2 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-1959@lists.php.net to get a copy of this message | ||
On Fri, 11 Feb 2005 00:59:50 +0100, Edin Kadribasic <edink@emini.dk> wrote:
> You know that changing this after 5.1 release and official introduction
> of PDO would be impossible.
It's always possible to relax restrictions after a release, rather
than tighten them.
> The problem I have with it that anyone that wants to write a portable
> abstraction layer on top of PDO such as ADOdb gains very little by
> using PDO over standard PHP database extensions. The code would have to
> be full of if ($driver) and such.
A possible syntax to use this native stored procedure interface could
look something like this:
$stmt = $db->prepare("CALL sp_thing(@foo)", array(PDO_ATTR_ALT_SYNTAX
=> true)));
$stmt->bindParam('@foo', ....);
$stmt->execute();
This is something of a special case, and I haven't had a chance to
fully explore it. I want to focus on making sure that the current
iteration of PDO is stable and future-proof; that does mean being a
bit strict.
(that plus my previously stated reasons)
--Wez.