use of com.alibaba.druid.sql.dialect.postgresql.ast.PGSQLObject in project druid by alibaba.
the class SQLObjectImpl method output.
public void output(Appendable buf) {
DbType dbType = null;
if (this instanceof OracleSQLObject) {
dbType = DbType.oracle;
} else if (this instanceof MySqlObject) {
dbType = DbType.mysql;
} else if (this instanceof PGSQLObject) {
dbType = DbType.postgresql;
} else if (this instanceof SQLDbTypedObject) {
dbType = ((SQLDbTypedObject) this).getDbType();
}
accept(SQLUtils.createOutputVisitor(buf, dbType));
}
Aggregations