Hi Brian,Could you please paste a copy of the stack trace for the ClassCastException you're seeing to http://clojure.pastebin.com and post the URL for it here?
If you're driving your program at the repl, you can get a stack trace from the most recent exception with:
(.printStackTrace *e) Thanks, --Steve On Jan 26, 2009, at 9:45 AM, BrianS wrote:
I have been able to connect up clojure and my SQL Server 2005 server, using the sample code include with clojure-contrib, at least in terms of connecting, and responding to command like CREATE TABLE and INSERT INTO. However, whenever I use the commands to access the tables and pull back results (simple SELECT * type SQL commands), I invariably get java.lang.ClassCastException errors. It is not related to NULL values in a field, nor is it related to real or int fields (as I get these errors even when the tables I pull from do not have these types). Has anyone come across this issue with SQL Server/MS JDBC/ clojure-contrib? Barring that, is there anyone with any type of working code example for using clojure-contrib against SQL Server? Thanks in advance for your help, Brian S
smime.p7s
Description: S/MIME cryptographic signature