This commit is contained in:
Sean Corfield 2021-09-30 10:08:19 -07:00
parent f4f743b94f
commit 2cef41d9ae
2 changed files with 3 additions and 1 deletions

View file

@ -3,6 +3,7 @@
Only accretive/fixative changes will be made from now on. Only accretive/fixative changes will be made from now on.
* 1.2.next in progress * 1.2.next in progress
* Fix #181 by supporting option-wrapped connection in `execute-batch!`.
* Address #179 by improving documentation around connection pool initialization. * Address #179 by improving documentation around connection pool initialization.
* Update `build-clj` to v0.5.0. * Update `build-clj` to v0.5.0.

View file

@ -331,7 +331,8 @@
result)))) result))))
params))) params)))
([connectable sql param-groups opts] ([connectable sql param-groups opts]
(if (instance? java.sql.Connection connectable) (if (or (instance? java.sql.Connection connectable)
(instance? next.jdbc.default_options.DefaultOptions connectable))
(with-open [ps (prepare connectable [sql] opts)] (with-open [ps (prepare connectable [sql] opts)]
(execute-batch! ps param-groups opts)) (execute-batch! ps param-groups opts))
(with-open [con (get-connection connectable)] (with-open [con (get-connection connectable)]