mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
@@ -169,23 +169,8 @@ class SchemaResolveVisitorFactory {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean visit(MySqlReplaceStatement x) {
|
||||
Context ctx = createContext(x);
|
||||
|
||||
SQLExprTableSource tableSource = x.getTableSource();
|
||||
ctx.setTableSource(tableSource);
|
||||
visit(tableSource);
|
||||
|
||||
for (SQLExpr column : x.getColumns()) {
|
||||
column.accept(this);
|
||||
}
|
||||
|
||||
SQLQueryExpr queryExpr = x.getQuery();
|
||||
if (queryExpr != null) {
|
||||
visit(queryExpr.getSubQuery());
|
||||
}
|
||||
|
||||
popContext();
|
||||
public boolean visit(SQLReplaceStatement x) {
|
||||
resolve(this, x);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1339,6 +1324,11 @@ class SchemaResolveVisitorFactory {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean visit(SQLReplaceStatement x) {
|
||||
resolve(this, x);
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEnabled(Option option) {
|
||||
return (options & option.mask) != 0;
|
||||
@@ -2444,6 +2434,25 @@ class SchemaResolveVisitorFactory {
|
||||
return false;
|
||||
}
|
||||
|
||||
static void resolve(SchemaResolveVisitor visitor, SQLReplaceStatement x) {
|
||||
SchemaResolveVisitor.Context ctx = visitor.createContext(x);
|
||||
|
||||
SQLExprTableSource tableSource = x.getTableSource();
|
||||
ctx.setTableSource(tableSource);
|
||||
visitor.visit(tableSource);
|
||||
|
||||
for (SQLExpr column : x.getColumns()) {
|
||||
column.accept(visitor);
|
||||
}
|
||||
|
||||
SQLQueryExpr queryExpr = x.getQuery();
|
||||
if (queryExpr != null) {
|
||||
visitor.visit(queryExpr.getSubQuery());
|
||||
}
|
||||
|
||||
visitor.popContext();
|
||||
}
|
||||
|
||||
static void resolve(SchemaResolveVisitor visitor, SQLForeignKeyConstraint x) {
|
||||
SchemaRepository repository = visitor.getRepository();
|
||||
SQLObject parent = x.getParent();
|
||||
|
||||
Reference in New Issue
Block a user