[jOOQ/jOOQ#13974] ParsingConnection doesn't correctly relay Statement::getResultSet, Statement::getUpdateCount, or Statement::getMoreResults on static Statement

This commit is contained in:
Lukas Eder 2022-09-13 15:06:16 +02:00
parent 6061630ba2
commit 90d083a9f9

View File

@ -344,9 +344,11 @@ final class ParsingStatement implements CallableStatement {
// XXX: Prepared statement execution
// -------------------------------------------------------------------------
private final PreparedStatement last() throws SQLException {
private final Statement last() throws SQLException {
if (last != null)
return last;
else if (statement != null)
return statement;
else
throw new SQLException("No PreparedStatement is available yet");
}