Skip to content

Commit 338b5b3

Browse files
committed
fix: fix mysql check status error
1 parent ad16f62 commit 338b5b3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

backend/apps/db/db.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ def check_connection(trans: Trans, ds: CoreDatasource, is_raise: bool = False):
106106
conn = get_engine(ds, 10)
107107
try:
108108
with conn.connect() as connection:
109-
if ds.type == 'mysql':
110-
connection.execute(text('select 1')).fetchall()
111109
SQLBotLogUtil.info("success")
112110
return True
113111
except Exception as e:

0 commit comments

Comments
 (0)