Does the JDBC spec prevent ‘?’ from being used as an operator (outside of quotes)?

If you have the latest postgresql driver you can use:

??

Changing the original query:

SELECT * FROM tbl WHERE tbl.data ?? 'abc'

Details are in this pull request – https://github.com/pgjdbc/pgjdbc/pull/227
This change was made long after the original question, but it’s worth noting that there’s an easy answer now.

Leave a Comment