On Jan 5, 2009, at 8:52 PM, ck wrote:
Stephen, thanks for pointing out the namespace problem. That fixed the
exception mentioned above, which was stupidity on my part.
With that I'm able to run (again) the
scrapbook=> (db-read)
in the second example, i.e. the one without the reference to second
table in columns, I get list of maps containing column-names and
values back (as expected):
{:id 1, :name Test}
...
But when the I run the one with the reference to second table in
columns, I get
java.lang.RuntimeException: java.lang.IllegalArgumentException: Too
many arguments to struct constructor (NO_SOURCE_FILE:0)
I recommend looking at the output of (.printStackTrace *e) after you get the exception. resultset-seq builds struct maps from the resultset. Would a correct output from this query have two columns whose names are identical? Looking at the implementation of resultset- seq in clojure.core, it looks like that might cause trouble. If that's really the issue, can you work around it in the SQL?
--Steve
smime.p7s
Description: S/MIME cryptographic signature
