Hi, I'm writing some queries using java.jdbc 0.3.3 as follows: (defn get-member-url [id] (jdbc/query db ["SELECT * FROM members WHERE id = ? LIMIT 1" id]))
However this results in an exception error: java.lang.ClassCastException clojure.lang.LazySeq cannot be cast to clojure.lang.IFn Not sure what I'm missing here. Db is postgres with [postgresql/postgresql "9.1-901.jdbc4"] and have the require [clojure.java.jdbc :as jdbc] at top of the model file. The above syntax is following the instructions here: http://clojure-doc.org/articles/ecosystem/java_jdbc/using_sql.html#reading-rows Any idea what I may be missing. I tried the row-fn and doall, but no dice so far. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
