Would be a way to do it. Interpose returns a lazy sequence so you need to apply str to realize the sequence.
Luc P.
--
Luc P.
================
The rabid Muppet
Luc
--
If you're using clojure.java.jdbc, you could generate a lit of ? for
the SQL and just using the vector directly... something like this (off
the top of my head, completely untested):
(def qs (clojure.string/join "," (repeat (count xs) "?")))
(def sql (str "select * from table where id in (" qs ")"))
(clojure.java.jdbc/with-query-result conn rows
[ sql xs ]
(do-something-to rows))
Sorry, don't have a REPL open right now to test this...
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Railo Technologies, Inc. -- http://www.getrailo.com/
"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)
It performs better than the other solutions...
Which is exactly what I said, yes? (just checking we're on the same page here).
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Railo Technologies, Inc. -- http://www.getrailo.com/