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


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to