Fork me on GitHub
#funcool
<
2016-05-18
>
hoppy21:05:20

clojure.jdbc against oracle:

hoppy21:05:28

(defn dammit [] (let [qry "select * from dual" dbc (jdbc/connection dbspec)] (for [x (range 1000)] (do (println x) (jdbc/fetch dbc qry)))))

hoppy21:05:42

SQLException ORA-01000: maximum open cursors exceeded oracle.jdbc.driver.T4CTTIoer.processError (T4CTTIoer.java:450)

hoppy21:05:01

seems fetch doesn't free the statement as expected

hoppy21:05:08

should there be a with-open in there somewhere?