bug fixed for SchemaStat

This commit is contained in:
温少
2012-02-22 17:37:44 +08:00
13 changed files with 984 additions and 428 deletions
@@ -0,0 +1,21 @@
package com.alibaba.druid.sql;
import java.util.List;
import com.alibaba.druid.sql.ast.SQLStatement;
import com.alibaba.druid.sql.dialect.postgresql.visitor.PGOutputVisitor;
import junit.framework.TestCase;
public class PGTest extends TestCase {
protected String output(List<SQLStatement> stmtList) {
StringBuilder out = new StringBuilder();
PGOutputVisitor visitor = new PGOutputVisitor(out);
for (SQLStatement stmt : stmtList) {
stmt.accept(visitor);
}
return out.toString();
}
}