fix: fix mysql check status error

This commit is contained in:
junjun
2025-09-01 10:41:22 +08:00
parent ad16f6221d
commit 338b5b348a
-2
View File
@@ -106,8 +106,6 @@ def check_connection(trans: Trans, ds: CoreDatasource, is_raise: bool = False):
conn = get_engine(ds, 10)
try:
with conn.connect() as connection:
if ds.type == 'mysql':
connection.execute(text('select 1')).fetchall()
SQLBotLogUtil.info("success")
return True
except Exception as e: