Fix test connection on mongodb datasource (#4785)

Co-authored-by: Weng Kham Kan <wengkham.kan@icarasia.com>
This commit is contained in:
Weng Kham
2020-04-14 16:47:14 +08:00
committed by GitHub
parent 3df1a86d66
commit f7df6e0cdc

View File

@@ -195,7 +195,7 @@ class MongoDB(BaseQueryRunner):
if not db.command("connectionStatus")["ok"]:
raise Exception("MongoDB connection error")
return db_connection[self.db_name]
return db
def _merge_property_names(self, columns, document):