pgjdbc/pgjdbc — pull request #187 by tminglei (2014-09-17 14:47:46+00:00)
Title: add ?-contained operator support

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[];");
```
p.s. PgJDBC won't recognize the `??` as a parameter placeholder, and restore it back to `?` before sending to postgres server.

Pls help review and give your concerns or suggestions. Thanks!