Re: java.jdbc not working with my jdbc driver

2013-12-08 Thread Avinash Dongre
Thanks Everything is working as per expectation. On Friday, December 6, 2013 6:38:23 PM UTC+5:30, Avinash Dongre wrote: Hi I have our own jdbc driver when I am trying to use clojure java.jdbc it is giving me error like below Exception in thread main java.lang.ClassCastException:

java.jdbc not working with my jdbc driver

2013-12-06 Thread Avinash Dongre
Hi I have our own jdbc driver when I am trying to use clojure java.jdbc it is giving me error like below Exception in thread main java.lang.ClassCastException: a.b.my_custom_driver cannot be cast to clojure.lang.IFn at clojure.gemfireXD.jdbc$createStatement.invoke(client.clj:13) at

Re: java.jdbc not working with my jdbc driver

2013-12-06 Thread Justin Smith
Parenthesis call the thing they wrap as a function. You have getConnection wrapped in a redundant set of parenthesis, so the return value of getConnection is being called. It is not a function, but it is a ConnectionCustom, so you get your error. Some hints to make clojure code more readable:

Re: java.jdbc not working with my jdbc driver

2013-12-06 Thread Justin Smith
To add some further clarification to the style hints suggested: many of us read code in multiple languages, and using formatting that is idiomatic to the language being used helps us keep the rules straight. f(a b) is an algol family syntax, the lisp family has a direct equivalent of (f a b),