Re: JDBC Connection auto-commit?: [ANN] clojure.java.jdbc 0.7.0 Beta1

2017-07-07 Thread Ralf Schmitt
Sean Corfield writes: > Of course. The :auto-commit? parameter has to be passed to > with-db-connection so that connections and their state are properly > scoped, so that connections don’t “randomly” change their behavior > half way through a with-db-connection block because a _query_ > (somethin

RE: JDBC Connection auto-commit?: [ANN] clojure.java.jdbc 0.7.0 Beta1

2017-07-07 Thread Sean Corfield
> reducible-query also works Good. > and it also ignores the :auto-commit? > parameter when wrapped inside a with-db-connection Of course. The :auto-commit? parameter has to be passed to with-db-connection so that connections and their state are properly scoped, so that connections don’t “rand

Re: JDBC Connection auto-commit?: [ANN] clojure.java.jdbc 0.7.0 Beta1

2017-07-07 Thread Ralf Schmitt
Ralf Schmitt writes: >> (into [] (take 2) (jdbc/query db query {:fetch-size 500 :auto-commit? >> false})) > > Sorry, this one works. will test with reducible-query tomorrow. reducible-query also works (and it also ignores the :auto-commit? parameter when wrapped inside a with-db-connection). -