pgjdbc/pgjdbc — pull request #227 by tminglei (2014-12-01 10:17:58+00:00)
Title: add ?-contained operator support

Resending for #187. Pls help review and merge. Thanks!

==============================
Currently it seems PgJDBC didn't support ?-contained operator escaping, which lead to some ?-contained operators, such as hstore's `?&`/`?|` and ltree's `?`/`?~`/`?@` and so on, can't be used in PreparedStatement.

This pull request try to resolve the problem.

How to use it?
double mark the `?` when passing a raw sql to connection's prepareStatement method, as below:
```java
st = conn.prepareStatement("SELECT 'Top.Collections.Pictures.Astronomy.Stars'::ltree ?? '{\"*.Astronomy.*\"}'::lquery[];");
```
and PgJDBC won't recognize the `??` as a parameter placeholder, and restore it back to `?` before sending to postgres server.