Skip to content

Commit

Permalink
sql出错提示不友好 (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
sim-wangyan committed Mar 31, 2022
1 parent 4c92cfa commit ed91ff8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ private ConditionBuilder doGle(Op p, String property, Object value) {
isOr();
return instance;
}
if (value instanceof List || value.getClass().isArray()) {
throw new IllegalArgumentException(property + " " +p + " " + value + ", try " + property +" " + Op.IN + " (" + value + ")");
}
Bb bb = new Bb(isOr());
bb.setP(p);
bb.setKey(property);
Expand Down

0 comments on commit ed91ff8

Please sign in to comment.