From f4737439208df3f43f9ef023bdd14cac8212de1b Mon Sep 17 00:00:00 2001 From: blight19 <37695262+blight19@users.noreply.github.com> Date: Thu, 10 Oct 2024 16:20:17 +0800 Subject: [PATCH] =?UTF-8?q?mongodb=20comment=20=E6=A3=80=E6=B5=8B=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D=20(#2830)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/engines/mongo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/engines/mongo.py b/sql/engines/mongo.py index 534971fd8f..b864f4eedd 100644 --- a/sql/engines/mongo.py +++ b/sql/engines/mongo.py @@ -534,8 +534,8 @@ def execute_check(self, db_name=None, sql=""): # 执行语句 for check_sql in sp_sql: alert = "" # 警告信息 + check_sql = check_sql.strip() if not check_sql == "" and check_sql != "\n": - check_sql = check_sql.strip() # check_sql = f'''{check_sql}''' # check_sql = check_sql.replace('\n', '') #处理成一行 # 支持的命令列表