Re: pdo_pgsql

From: Date: Wed, 23 Mar 2005 03:54:13 +0000
Subject: Re: pdo_pgsql
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-15553@lists.php.net to get a copy of this message
Wez Furlong wrote:
The problem with using $ in the query is that you'd need to \ escape them; remember that PHP uses $ to interpolate its own variables. IMO, adding $ as another way to name parameters is overkill, as we already have :named style.
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? Or we just abandon native binding on pgsql? 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. Chris

« previous php.internals (#15553) next »