On 2/11/13 11:30 AM, Tom Lane wrote:
It would take extremely deep knowledge of SQL syntax for the driver to
reliably tell the difference between a variable and an operator

Yes, auto-detecting the difference between bind vars and operators would probably be even more difficult than providing escapes for ?, the difficulty of which Kris pointed out earlier:

On 2/8/13 at 10:43AM Kris Jurka wrote:
This will be more complicated than you might hope because the escape processing 
currently happens prior to bind parameter detection

The relevant section, I believe, is:

https://github.com/pgjdbc/pgjdbc/blob/master/org/postgresql/core/v3/QueryExecutorImpl.java#L164

Best,
Seamus

PS. Thanks Andrew for reminding me about top-posting :)


--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to