improved postgresql parser. for issue #2129

This commit is contained in:
wenshao
2017-11-25 21:21:02 +08:00
parent 128ddafacf
commit b90e175aa3
7 changed files with 60 additions and 7 deletions
@@ -65,6 +65,8 @@ public class SQLCreateTableStatement extends SQLStatementImpl implements SQLDDLS
protected final List<SQLSelectOrderByItem> sortedBy = new ArrayList<SQLSelectOrderByItem>();
protected int buckets;
protected Map<String, SQLObject> tableOptions = new LinkedHashMap<String, SQLObject>();
public SQLCreateTableStatement(){
}
@@ -231,6 +233,10 @@ public class SQLCreateTableStatement extends SQLStatementImpl implements SQLDDLS
this.partitioning = partitioning;
}
public Map<String, SQLObject> getTableOptions() {
return tableOptions;
}
@Override
protected void accept0(SQLASTVisitor visitor) {
if (visitor.visit(this)) {