1、调用com.alibaba.druid.wall.WallFilter.check(String)方法,检查sql的定义。
select count(1) from t_table where 1=0 and id=1 正确;
select count(1) from t_table where 1=0 and id=1 and 2=2 不正确
select count(1) from t_table where id=1 and 1=0 不正确
com.alibaba.druid.wall.spi.WallVisitorUtils.checkSelelct(WallVisitor, SQLSelectQueryBlock)打断点
逻辑调用