Fork me on GitHub
#sql
<
2020-06-10
>
yedi15:06:13

i'm using this snippet to convert a map into an array of arrays (into-array (map (fn [[k v]] (into-array String [(str k) v])) mapping))

yedi15:06:36

but I get when I try to use nsql/update

Execution error (PSQLException) at org.postgresql.jdbc.PgPreparedStatement/setObject (PgPreparedStatement.java:955).
Can't infer the SQL type to use for an instance of [[Ljava.lang.String;. Use setObject() with an explicit Types value to specify the type to use.