Re: PDO->execute() addition
| From: | Lukas Smith | Date: | Wed, 25 May 2005 13:37:51 +0000 |
| Subject: | Re: PDO->execute() addition | ||
| References: | 1 2 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-2388@lists.php.net to get a copy of this message | ||
Wez Furlong wrote:
My personal opinion on this, is that bindColumn is something that will be used a lot less than real bindParam, as it doesn't provide as much utility; it's purely a PHP-side aliasing operation to magically set variables from the columns of the rowset. I believe that explicit bindColumn() calls make this "magic" more clear, and this sentiment is backed up by some of the initial negative vibes about the whole bindParam/bindColumn idea. I don't believe that not adding a bindColumn() shortcut means that we should remove the bindParam() from the execute call, nor that the current implementation is "half breaded". From a keeping-a-somewhat-clean-api-for-the-future perspective, I'd like to avoid overloading the execute() call, unless there is very strong demand for it, so I asked Marcus to post his suggestion here. If you think that we should add a bindColumn shortcut as an optional second parameter to PDOStatement::execute(), please pipe up.I agree with Wez here. regards, Lukas