Re: pdo: binding variables supplied to execute() is NotVeryUseful(tm)...
| From: | Andi Gutmans | Date: | Sat, 02 Apr 2005 15:10:36 +0000 |
| Subject: | Re: pdo: binding variables supplied to execute() is NotVeryUseful(tm)... | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-15732@lists.php.net to get a copy of this message | ||
At 10:13 AM 4/1/2005 +0200, Thies C.Arntzen wrote:
all those functions expect to bind a <parameter name> to a statement. this <parameter name> should work both with or without a leading colon. by the way (just checked) - this is how the "native" oracle-oci binding functions work. so oracle decided to make the colon in front of the placeholder for bind optional. at the end of the day you can only bind to a placeholder defined in your sql-statement. in the sql you have to "mark" the placeholder by prepending a colon - but for the bind you really don't need the colon. really! so - again - lets make the colon *optional* - everywhere we allow binding in PDO!Yeah, that makes a lot of sense to me too. Actually, (pardon my ignorance) I was surprised to find that binding with name only isn't the standard method. Andi