mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve sqlwall: union
This commit is contained in:
@@ -2147,6 +2147,14 @@ public class WallVisitorUtils {
|
||||
if (isTopUpdateStatement || isTopInsertStatement) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (x.getLeft() instanceof SQLSelectQueryBlock) {
|
||||
SQLSelectQueryBlock left = (SQLSelectQueryBlock) x.getLeft();
|
||||
SQLTableSource tableSource = left.getFrom();
|
||||
if (left.getWhere() == null && tableSource != null && tableSource instanceof SQLExprTableSource) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
WallContext context = WallContext.current();
|
||||
if (context != null) {
|
||||
|
||||
Reference in New Issue
Block a user