From 74c631fa98bedd88a8668b1fe676e73b486aadb4 Mon Sep 17 00:00:00 2001 From: Beto Dealmeida Date: Tue, 20 Sep 2022 10:07:43 -0700 Subject: [PATCH] feat: support new types from 0.23 (#290) --- pydruid/db/sqlalchemy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pydruid/db/sqlalchemy.py b/pydruid/db/sqlalchemy.py index ae52c7a9..35a5f09c 100644 --- a/pydruid/db/sqlalchemy.py +++ b/pydruid/db/sqlalchemy.py @@ -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