mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved postgresql sql parser. support if not exists.
This commit is contained in:
@@ -2526,6 +2526,10 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
|
||||
}
|
||||
print0(ucase ? "TABLE " : "table ");
|
||||
|
||||
if (x.isIfNotExiists()) {
|
||||
print0(ucase ? "IF NOT EXISTS " : "if not exists ");
|
||||
}
|
||||
|
||||
printTableSourceExpr(x.getName());
|
||||
|
||||
printTableElements(x.getTableElementList());
|
||||
|
||||
Reference in New Issue
Block a user