improved mysql parser. bug fixed for issue #2263

This commit is contained in:
wenshao
2018-01-22 22:58:33 +08:00
parent 752546f2a0
commit b7214015a2
4 changed files with 56 additions and 0 deletions
@@ -5188,6 +5188,11 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
public boolean visit(SQLAlterTableDiscardPartition x) {
print0(ucase ? "DISCARD PARTITION " : "discard partition ");
printPartitions(x.getPartitions());
if (x.isTablespace()) {
print0(ucase ? " TABLESPACE" : " tablespace");
}
return false;
}