mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve sql wall
This commit is contained in:
@@ -794,6 +794,14 @@ public class WallVisitorUtils {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (parent instanceof SQLJoinTableSource) {
|
||||
SQLJoinTableSource joinTableSource = (SQLJoinTableSource) parent;
|
||||
if (joinTableSource.getCondition() == x) {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (parent instanceof SQLUnionQuery) {
|
||||
SQLUnionQuery union = (SQLUnionQuery) parent;
|
||||
if (union.getRight() == x && hasWhere(union.getLeft())) {
|
||||
|
||||
Reference in New Issue
Block a user