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
768 stars 90 forks source link

Fix NPE in <-pgobject #284

Closed ExNexu closed 3 months ago

ExNexu commented 3 months ago

In the existing code this will throw because with-meta is called on nil:

(def json-null-pgobject (doto (PGobject.) (.setType "jsonb") (.setValue "null")))

(<-pgobject json-null-pgobject)

The pr <-pgobject returns nil instead.

seancorfield commented 3 months ago

Thank you!