> So you are proposing that we rewrite :name and ? params into $n format
> and use pgsql's native prepare/bind functions to do the binding? 

Yes.

> BTW, isn't the current sql parser broken for mysql backquoting anyway?
> 
> eg: SELECT * FROM `my_weird ? table`;
> 
> And in case you're wondering, yes that is a perfectly legal mysql table
> name.

Probably, but again, I'm not too worried about this right now.  It's
impossible to cover everything 100%; I think a reasonable way out for
people that have to work with such an atrocity is to set an attribute
to tell PDO not to bother parsing the query.

--Wez.

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

Reply via email to