Skip to content

Commit

Permalink
修复mongo执行sql语句超过4000工单失败的问题 #2250
Browse files Browse the repository at this point in the history
  • Loading branch information
Grain-Yu authored Oct 10, 2023
1 parent a829783 commit 34f14d9
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 34f14d9

Please sign in to comment.