Hi,

I'm relatively new to Clojure. This must be easy.
I am trying to write a function that creates a table with a name passed as 
argument, and this naturally requires passing *
clojure.java.jdbc/create-table *a value for the table name, rather than 
specifying the name as a constant. However I'm not insofar able to pull it 
off. 

When I use the form *create-table passed-argument [fields] *as opposed to a 
constant as in *create-table **:hard-coded-entity-name** [fields]*, then 
the table gets successfully created in the database, however my code also 
gets an exception - java.lang.ClassCastException: 
clojure.lang.ArraySeq$ArraySeq_int cannot be cast to clojure.lang.IFn. The 
exception is received even though the table had been seemingly perfectly 
created. I'm probably missing something basic. What do you think can it be?

Thanks,
Matt



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