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 7260134 commit 724826d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions sql/engines/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,14 +673,6 @@ def execute_check(self, db_name=None, sql=""):
row.stagestatus = "驳回高危SQL"
row.errlevel = 2
row.errormessage = "禁止提交匹配" + critical_ddl_regex + "条件的语句!"
elif ddl_dml_separation and syntax_type in ("DDL", "DML"):
if ddl_dml_flag == "":
ddl_dml_flag = syntax_type
elif ddl_dml_flag != syntax_type:
check_result.error_count += 1
row.stagestatus = "驳回不支持语句"
row.errlevel = 2
row.errormessage = "DDL语句和DML语句不能同时执行!"
# dml影响行数超过限制,超过限制的dml必须拆分成小事务才可以提交,建议不打开REAL_ROW_COUNT
elif syntax_type == "DML" and affected_rows > affected_rows_limit:
check_result.error_count += 1
Expand All @@ -691,6 +683,14 @@ def execute_check(self, db_name=None, sql=""):
+ str(affected_rows_limit)
+ "行的dml语句!"
)
elif ddl_dml_separation and syntax_type in ("DDL", "DML"):
if ddl_dml_flag == "":
ddl_dml_flag = syntax_type
elif ddl_dml_flag != syntax_type:
check_result.error_count += 1
row.stagestatus = "驳回不支持语句"
row.errlevel = 2
row.errormessage = "DDL语句和DML语句不能同时执行!"
return check_result

def execute_workflow(self, workflow):
Expand Down

0 comments on commit 724826d

Please sign in to comment.