druid PG paser 之后在 to string

hlswsv35  于 4个月前  发布在  Druid
关注(0)|答案(1)|浏览(64)

java.lang.ClassCastException: com.alibaba.druid.sql.visitor.SQLASTOutputVisitor cannot be cast to com.alibaba.druid.sql.dialect.postgresql.visitor.PGASTVisitor
at com.alibaba.druid.sql.dialect.postgresql.ast.stmt.PGCreateSchemaStatement.accept0(PGCreateSchemaStatement.java:64)
at com.alibaba.druid.sql.ast.SQLObjectImpl.accept(SQLObjectImpl.java:49)
at com.alibaba.druid.sql.SQLUtils.toSQLString(SQLUtils.java:112)
at com.alibaba.druid.sql.SQLUtils.toSQLString(SQLUtils.java:83)
at com.alibaba.druid.sql.ast.SQLStatementImpl.toString(SQLStatementImpl.java:48)

new PGSQLStatementParser(sqlString, SQLParserFeature.KeepComments).parseStatementList();

相关问题