remodoy / clj-postgresql

PostgreSQL helpers for Clojure projects
BSD 2-Clause "Simplified" License
161 stars 17 forks source link

Convert sequences to JSONB #4

Closed podviaznikov closed 6 years ago

podviaznikov commented 9 years ago

Right now only maps are converted to JSON and JSONB. Would be good to have the same functionality for the sequences.

thron7 commented 7 years ago

I had the same problem and provided a pull request: https://github.com/remodoy/clj-postgresql/pull/14 . As a work-around, you can provide the missing multimethods in your own code.

alehatsman commented 7 years ago

@jkjuopperi can u please deploy it to clojars?

alehatsman commented 7 years ago

I guess we can close it, as code is already in the master

alehatsman commented 6 years ago

???

georgejdanforth commented 6 years ago

Has this fix been deployed to clojars? I'm having the same issue when trying to insert a sequence as JSON:

PSQLException Can't infer the SQL type to use for an instance of clojure.lang.PersistentVector. Use setObject() with an explicit Types value to specify the type to use.  org.postgresql.jdbc.PgPreparedStatement.setObject (PgPreparedStatement.java:967)