Skip to content

Commit

Permalink
修改前端页面位置
Browse files Browse the repository at this point in the history
  • Loading branch information
woshiyanghai committed Jul 19, 2024
1 parent 7683ebf commit 7260134
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions common/templates/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,16 +161,6 @@ <h4 style="color: darkgrey"><b>功能模块配置</b></h4>
<h5 style="color: darkgrey"><b>SQL上线</b></h5>
<hr/>
<div class="form-horizontal">
<div class="form-group">
<label for="affected_rows_limit"
class="col-sm-4 control-label">AFFECTED_ROWS_LIMIT</label>
<div class="col-sm-5">
<input type="number" class="form-control" id="affected_rows_limit"
key="affected_rows_limit"
value="{{ config.affected_rows_limit }}"
placeholder="dml影响行数限制,超过行的语句禁止提交,默认100000000" />
</div>
</div>
<div class="form-group">
<label for="critical_ddl_regex"
class="col-sm-4 control-label">CRITICAL_DDL_REGEX</label>
Expand Down Expand Up @@ -314,6 +304,16 @@ <h5 style="color: darkgrey"><b>SQL上线</b></h5>
</div>
</div>
</div>
<div class="form-group">
<label for="affected_rows_limit"
class="col-sm-4 control-label">AFFECTED_ROWS_LIMIT</label>
<div class="col-sm-5">
<input type="number" class="form-control" id="affected_rows_limit"
key="affected_rows_limit"
value="{{ config.affected_rows_limit }}"
placeholder="dml影响行数限制,超过行的语句禁止提交,默认100000000" />
</div>
</div>
<div class="form-group">
<label for="ban_self_audit"
class="col-sm-4 control-label">BAN_SELF_AUDIT</label>
Expand Down
2 changes: 1 addition & 1 deletion sql/engines/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ def execute_check(self, db_name=None, sql=""):
row.stagestatus = "驳回不支持语句"
row.errlevel = 2
row.errormessage = "DDL语句和DML语句不能同时执行!"
# dml影响行数超过限制,超过限制的dml必须拆分成小事务才可以提交
# dml影响行数超过限制,超过限制的dml必须拆分成小事务才可以提交,建议不打开REAL_ROW_COUNT
elif syntax_type == "DML" and affected_rows > affected_rows_limit:
check_result.error_count += 1
row.stagestatus = "驳回高危SQL"
Expand Down

0 comments on commit 7260134

Please sign in to comment.