Skip to content

Commit

Permalink
update rules description
Browse files Browse the repository at this point in the history
  • Loading branch information
donhui committed Aug 13, 2019
1 parent 1d3c269 commit c69e228
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/main/resources/mybatis/mybatislint-rules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
<internalKey>MyBatisMapperCheckRule4</internalKey>
<description>If all parameters in the update statement of Mapper XML file are null,
the sql will not have where condition, then it will select all records from the table, which may lead to
performance issues. Suggest using native dynamic sql instead of MyBatis dynamic SQL for required parameters.
performance issues. Suggest using simple parameters instead of elements (such as:
if,choose,when,otherwise,trim,where,set,foeeach elemnt etc.) for required parameters.
</description>
<severity>MINOR</severity>
<cardinality>SINGLE</cardinality>
Expand All @@ -70,8 +71,8 @@
<internalKey>MyBatisMapperCheckRule5</internalKey>
<description>If all parameters in the update statement of Mapper XML file are null,
the sql will not have where condition, then it will update all records from the table, which will result
production accident. Suggest using native dynamic sql instead of MyBatis dynamic SQL for required
parameters.
production accident. Suggest using simple parameters instead of elements (such as:
if,choose,when,otherwise,trim,where,set,foeeach elemnt etc.) for required parameters.
</description>
<severity>MAJOR</severity>
<cardinality>SINGLE</cardinality>
Expand All @@ -88,8 +89,8 @@
<internalKey>MyBatisMapperCheckRule6</internalKey>
<description>If all parameters in the delete statement of Mapper XML file are null,
the sql will not have where condition, then it will delete all records from the table, which will result
production accident. Suggest using native dynamic sql instead of MyBatis dynamic SQL for required
parameters.
production accident. Suggest using simple parameters instead of elements (such as:
if,choose,when,otherwise,trim,where,set,foeeach elemnt etc.) for required parameters.
</description>
<severity>CRITICAL</severity>
<cardinality>SINGLE</cardinality>
Expand Down

0 comments on commit c69e228

Please sign in to comment.