On Mon, Nov 7, 2011 at 3:04 PM, keeds <akee...@gmail.com> wrote:
> Some more (blind) delving shows that the only difference between the
> versions is that clojure1.2 and contrib pass the 14 value as a
> java.lang.Integer whereas clojure1.3 and java.jdbc pass the value 14 as a
> java.lang.Long and this is what blows the .setObject call.
> Strings work fine as does forcing 14 to be an Integer by passing it as
> (Integer. 14)

Glad to hear you have a workaround. Yes, in 1.3 all primitive
arithmetic is done in long and double so when values are boxed, they
become Long and Double. However, as you've seen, you can explicitly
box them as Integer (and Float).

> Not sure why a Long should be an invalid type though?

No idea. Some aspect of the JDBC-ODBC bridge, perhaps?
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
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

Reply via email to