improve sqlwall: union

This commit is contained in:
Yako
2014-09-03 18:12:35 +08:00
parent 9b58d41f69
commit fc7f5e016b
9 changed files with 30 additions and 14 deletions
@@ -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) {