Skip to content
Snippets Groups Projects
Commit 1f891ed6 authored by Cam Saül's avatar Cam Saül
Browse files

Merge pull request #527 from metabase/fix_the_mongo

fix the mongo connection error
parents 6a73b585 261583a0
Branches
Tags
No related merge requests found
......@@ -22,8 +22,8 @@
(create-physical-db! [_ _])
(drop-physical-db! [this database-definition]
(mg/drop-db (mg/connect (database->connection-details this database-definition))
(escaped-name database-definition)))
(with-open [mongo-connection (mg/connect (database->connection-details this database-definition))]
(mg/drop-db mongo-connection (escaped-name database-definition))))
;; Nothing to do here, collection is created when we add documents to it
(create-physical-table! [_ _ _])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment