Skip to content
Snippets Groups Projects
Unverified Commit 23b394b0 authored by Cam Saul's avatar Cam Saul Committed by GitHub
Browse files

Merge pull request #9557 from metabase/fix-snowflake-and-vertica

Fix Snowflake & Vertica [ci snowflake] [ci vertica]
parents e8dd2a4d b4c4cc6b
No related merge requests found
......@@ -170,7 +170,9 @@
;; This is normally done for us by java.jdbc as a result of our `jdbc/query` call
(with-open [^PreparedStatement stmt (jdbc/prepare-statement conn sql opts)]
;; specifiy that we'd like this statement to close once its dependent result sets are closed
(.closeOnCompletion stmt)
;; (Not all drivers support this so ignore Exceptions if they don't)
(u/ignore-exceptions
(.closeOnCompletion stmt))
;; Need to run the query in another thread so that this thread can cancel it if need be
(try
(let [query-future (future (jdbc/query conn (into [stmt] params) opts))]
......
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