Houston, I have a problem:

(sql/with-connection db_spec
         (sql/insert-values "MyTable" ["Number" "Name" "FloatValue"]
[5, "A", 2.0] [6 ,"B", 3.0])

This works perfectly fine. 



Now I'm trying to do the following:

(def x [[5, "A", 2.0] [6 ,"B", 3.0]])
(sql/with-connection db_spec
         (sql/insert-values "MyTable" ["Number" "Name" "FloatValue"]
        x))

I get the error: There are more columns in the INSERT statement than values 
specified in the VALUES clause.  The number of values in the VALUES clause 
must match the number of columns specified in the INSERT statement

How do I have to put  x in the insert-values function? I guess it needs to 
be expaned somehow. I tried a couple of things (doall, doseq,...) No 
success..

Thanks.

- Finn




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