Skip to content

Commit

Permalink
feat: support new types from 0.23 (druid-io#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
betodealmeida authored Sep 20, 2022
1 parent a9c174f commit 74c631f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pydruid/db/sqlalchemy.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ def do_ping(self, dbapi_connection) -> bool:
Return if the database can be reached.
"""
try:
dbapi_connection.execute("SELECT 1")
except Exception:
dbapi_connection.execute(text("SELECT 1"))
except Exception as ex:
return False

return True
Expand Down

0 comments on commit 74c631f

Please sign in to comment.