Problem using integers as record attributes

7 views
Skip to first unread message

edoloughlin

unread,
Jan 24, 2011, 11:37:44 AM1/24/11
to clj-record-dev
If I try to add integers as field values/record attributes, I'm
seeing:
"Exception java.lang.Exception: transaction rolled back:
java.lang.Integer cannot be cast to clojure.lang.IFn"

The ints I'm adding are foreign keys in the database. Should I use
strings?

Thanks.

John D. Hume

unread,
Jan 24, 2011, 6:14:25 PM1/24/11
to clj-rec...@googlegroups.com
On Mon, Jan 24, 2011 at 7:37 PM, edoloughlin <ed.olo...@gmail.com> wrote:
> If I try to add integers as field values/record attributes, I'm
> seeing:
>  "Exception java.lang.Exception: transaction rolled back:
> java.lang.Integer cannot be cast to clojure.lang.IFn"

Hi there,
Can you provide an example of what your code is doing and the
stacktrace associated with that code? Also, what does your table
schema look like, and what RDBMS are you using? Thanks.
-hume.

--
http://elhumidor.blogspot.com/

Reply all
Reply to author
Forward
0 new messages