修正输出格式

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@174 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-05-21 07:42:25 +00:00
parent e74ff9169b
commit 6fd33e2213
3 changed files with 33 additions and 14 deletions
@@ -597,8 +597,8 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter {
}
x.getColumns().get(i).accept(this);
}
decrementIndent();
print(")");
decrementIndent();
}
if (x.getValues() != null) {
@@ -778,12 +778,18 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter {
@Override
public boolean visit(ValuesClause x) {
print("(");
incrementIndent();
for (int i = 0, size = x.getValues().size(); i < size; ++i) {
if (i != 0) {
if (i % 5 == 0) {
println();
}
print(", ");
}
x.getValues().get(i).accept(this);
}
decrementIndent();
print(")");
return false;
}