seancorfield / next-jdbc

A modern low-level Clojure wrapper for JDBC-based access to databases.
https://cljdoc.org/d/com.github.seancorfield/next.jdbc/
Eclipse Public License 1.0
755 stars 90 forks source link

Show ?? as ? escaped in PG Tips & Tricks #203

Closed seancorfield closed 2 years ago

seancorfield commented 2 years ago

PG has operators with ? in them (e.g., ?|) because, well, of course it does.

So there's a "conflict" between SQL placeholders (?) and PG operators and you need to escape the question mark by doubling it to get the operator ??| instead of a placeholder.