mirror of https://github.com/jeecgboot/jeecg-boot
parent
47d6af5c46
commit
ae74abe727
|
@ -41,7 +41,14 @@ public abstract class AbstractQueryBlackListHandler {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public boolean isPass(String sql) {
|
public boolean isPass(String sql) {
|
||||||
List<QueryTable> list = this.getQueryTableInfo(sql.toLowerCase());
|
List<QueryTable> list = null;
|
||||||
|
//【jeecg-boot/issues/4040】在线报表不支持子查询,解析报错 #4040
|
||||||
|
try {
|
||||||
|
list = this.getQueryTableInfo(sql.toLowerCase());
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.warn("校验sql语句,解析报错:{}",e.getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
if(list==null){
|
if(list==null){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue