This commit is contained in:
温少
2012-03-15 14:25:42 +08:00
parent 4bf0785f57
commit fc910ce774
11 changed files with 38 additions and 20 deletions
@@ -37,7 +37,7 @@ public class PGTruncateStatement extends SQLTruncateStatement implements PGSQLSt
public void accept0(PGASTVisitor visitor) {
if (visitor.visit(this)) {
acceptChild(visitor, tableNames);
acceptChild(visitor, tableSources);
}
visitor.endVisit(this);
}
@@ -205,7 +205,7 @@ public class PGSQLStatementParser extends SQLStatementParser {
for (;;) {
SQLName name = this.exprParser.name();
stmt.getTableNames().add(name);
stmt.addTableSource(name);
if (lexer.token() == Token.COMMA) {
lexer.nextToken();
@@ -251,7 +251,7 @@ public class PGOutputVisitor extends SQLASTOutputVisitor implements PGASTVisitor
print("ONLY ");
}
printlnAndAccept(x.getTableNames(), ", ");
printlnAndAccept(x.getTableSources(), ", ");
if (x.getRestartIdentity() != null) {
if (x.getRestartIdentity().booleanValue()) {