From 338b5b348a36d1e8513cf0d9925c534ab4657274 Mon Sep 17 00:00:00 2001 From: junjun Date: Mon, 1 Sep 2025 10:41:22 +0800 Subject: [PATCH] fix: fix mysql check status error --- backend/apps/db/db.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/apps/db/db.py b/backend/apps/db/db.py index 7dce8065..a23294ff 100644 --- a/backend/apps/db/db.py +++ b/backend/apps/db/db.py @@ -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: