Skip to content

Commit

Permalink
替换掉mongo使用load命令执行返回的true,修改格式
Browse files Browse the repository at this point in the history
  • Loading branch information
woshiyanghai committed Aug 16, 2023
1 parent c5537a2 commit 15dcbf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/engines/mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def exec_cmd(self, sql, db_name=None, slave_ok=""):

msg = "\n".join(_re_msg)
# 替换掉当语句长度超过4000使用load命令执行js 后多余返回的true
msg = msg.replace('true\n','')
msg = msg.replace('true\n',"")
except Exception as e:
logger.warning(f"mongo语句执行报错,语句:{sql}{e}错误信息{traceback.format_exc()}")
finally:
Expand Down

0 comments on commit 15dcbf7

Please sign in to comment.