diff --git a/CHANGELOG.md b/CHANGELOG.md index 87d8196..b4d1571 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ Only accretive/fixative changes will be made from now on. * 1.2.next in progress + * Fix #181 by supporting option-wrapped connection in `execute-batch!`. * Address #179 by improving documentation around connection pool initialization. * Update `build-clj` to v0.5.0. diff --git a/src/next/jdbc.clj b/src/next/jdbc.clj index 8a7d897..7395cdd 100644 --- a/src/next/jdbc.clj +++ b/src/next/jdbc.clj @@ -331,7 +331,8 @@ result)))) params))) ([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)] (execute-batch! ps param-groups opts)) (with-open [con (get-connection connectable)]