Skip to content

Commit

Permalink
修复mongo执行sql语句超过4000工单失败的问题 (#2250)
Browse files Browse the repository at this point in the history
* 修复mongo执行sql语句超过4000工单失败的问题

* 处理lint问题
  • Loading branch information
woshiyanghai authored Aug 21, 2023
1 parent 11176ae commit eabb990
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sql/engines/mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ def exec_cmd(self, sql, db_name=None, slave_ok=""):
_re_msg.append(_line)

msg = "\n".join(_re_msg)
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 eabb990

Please sign in to comment.