Skip to content
Snippets Groups Projects
Commit 43ed6db4 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

connection not transaction.

parent 3d16f9c0
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@
We specifically write out own `execute-query` function to avoid the autoCommit(false) call."
[_ {:keys [database], {sql :query, params :params} :native}]
(try (let [db-conn (sql/db->jdbc-connection-spec database)]
(jdbc/with-db-transaction [t-conn db-conn]
(jdbc/with-db-connection [t-conn db-conn]
(let [statement (if params
(into [sql] params)
sql)]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment