improved postgresql sql parser. support if not exists.

This commit is contained in:
wenshao
2017-10-22 20:43:27 +08:00
parent 1dba4fae47
commit dd0f8fe89c
9 changed files with 242 additions and 3 deletions
@@ -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());