Hey Sean, I really appreciate the quick response and your work with java.jdbc. Completely agree with you that it shouldn't automatically map out of the box. As a newbie to clojure and jdbc, do you have any advice on how I can get into resultset-seq* to do the mapping? I think it would be better not to have to map a BigDecimal to double after resultset- seq* returns a row.
Are there any future plans to add a mapping api to resultset-seq or is the pattern just to chain any custom mappings after resultset-seq? On Aug 23, 9:41 pm, Sean Corfield <seancorfi...@gmail.com> wrote: > No, you'd have to do it yourself. Since not all BigDecimal values > would fit correctly in double, it would be dangerous for resultset-seq > to do it. > > I expect there are all sorts of JDBC data types that don't quite match > Clojure types but I don't think automatically mapping them would be a > good idea... > > Sean > > > > > > > > On Tue, Aug 23, 2011 at 6:16 PM, HiHeelHottie <hiheelhot...@gmail.com> wrote: > > It looks like Oracle NUMBER types get mapped to BigDecimal in a result > > seq from clojure.java.jdbc. Is there an easy way to configure > > clojure.java.jdbc/ResultSet to map Oracle NUMBERS to doubles? -- 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