On Thursday, December 6, 2012 12:18:05 PM UTC+1, Amir Wasim 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"] >
-- 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