How about using apply? For example -
(sql/with-connection (db-connection) (apply sql/insert-values "table-name" ["id" "val"] [[2 "B"][3 "C"]])) Does that work? -BG On Thu, Dec 6, 2012 at 4:48 PM, Amir Wasim <amir.wa...@gmail.com> wrote: > > I am trying to use insert-values with value-groups which works like the > following > > (sql/with-connection (db-connection) > (sql/insert-values "table-name" ["id" "val"] [2 "B"][3 "C"])) > > here [2 "B"][3 "C"] is with two value groups > > the problem is i have list of list [[2 "B"][3 "C"]] and i want to convert it > (flatten) [2 "B"][3 "C"] because > (sql/with-connection (db-connection) > (sql/insert-values "table-name" ["id" "val"] [[2 "B"][3 "C"]])) > doesn't works and throws the following exception > > SQLException Invalid column type oracle.jdbc.driver. > OraclePreparedStatement.setObjectCritical (OraclePreparedStatement.java:8516) > > > does anyone have an idea how i can convert list of lists [[2 "B"][3 "C"]] To > list of items [2 "B"][3 "C"] -- Baishampayan Ghose b.ghose at gmail.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en