Hi, Am 18.08.2009 um 20:28 schrieb shane:
(defn sel []
(with-connection db
(with-query-results rs ["SELECT * FROM
DB2PROD.ED0CDT_CYCLE_DATES"]
(map :CYCLE_IND rs))))
Michael's suggestion about the typo is plausible. Should that fix the connection problem, you will almost surely want to wrap the map into a doall. Otherwise the lazy seq gets passed outside the with-connection and the connection will be closed, when realising the seq. Sean is also on the right track here. Sincerely Meikel
smime.p7s
Description: S/MIME cryptographic signature
