public PostgresStatement finishGenerating(PostgresServerSession server,
String sql, StatementNode stmt,
List<ParameterNode> params, int[] paramTypes) {
CopyStatementNode copyStmt = (CopyStatementNode)stmt;
try {
stmt = copyStmt.asQuery();
}
catch (StandardException ex) {
throw new SQLParserInternalException(ex);
}
PostgresStatement pstmt = super.finishGenerating(server, sql, stmt,