Re: clojure.contrib.sql error: java.lang.Exception: no current database connection

2010-04-09 Thread Base
You are THE MAN! Thank you so much Meikel !!! On Apr 9, 10:24 am, Meikel Brandmeyer wrote: > Hi, > > On Apr 9, 5:16 pm, Base wrote: > > > (with-connection db > >   (transaction > >      (map insert-user users ))) > > > Any thoughts on why this is occurring?  What am I missing? > > Laziness. T

Re: clojure.contrib.sql error: java.lang.Exception: no current database connection

2010-04-09 Thread Meikel Brandmeyer
Hi, On Apr 9, 5:16 pm, Base wrote: > (with-connection db >   (transaction >      (map insert-user users ))) > > Any thoughts on why this is occurring?  What am I missing? Laziness. The map does not get realised in the with-connection. map is not a loop. Use doseq. (with-connection db (transa