Skip to content

Commit

Permalink
fix critical DDL check return
Browse files Browse the repository at this point in the history
  • Loading branch information
chenmin committed Jan 21, 2019
1 parent e85c0bd commit 315a19e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/inception.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def criticalDDL(self, sqlContent):
result = ('', '', 2, '驳回高危SQL', '不能包含【DROP DATABASE】|【DROP TABLE】|【TRUNCATE PARTITION】|【TRUNCATE TABLE】关键字!', row, '', '', '', '', '')
criticalSqlFound = 1
else:
result = ('', '', 0, '', 'None', row, '', '', '', '')
result = ('', '', 0, '', 'None', row, '', '', '', '', '')
resultList.append(result)
if criticalSqlFound == 1:
return resultList
Expand Down

0 comments on commit 315a19e

Please sign in to comment.