[jOOQ/jOOQ#11512] Implement ParsingStatement.clearParameters()

This commit is contained in:
Lukas Eder 2021-03-12 11:04:36 +01:00
parent 8191a0f156
commit c71857c804

View File

@ -406,6 +406,11 @@ final class ParsingStatement implements CallableStatement {
// XXX: Indexed Variable binding for PreparedStatement
// -------------------------------------------------------------------------
@Override
public final void clearParameters() throws SQLException {
binds.clear();
}
private final void set(int parameterIndex, Supplier<Param<?>> supplier) {
bindValues(parameterIndex).set(parameterIndex - 1, supplier.get());
}
@ -1293,11 +1298,6 @@ final class ParsingStatement implements CallableStatement {
// XXX: TODO
// -------------------------------------------------------------------------
@Override
public final void clearParameters() throws SQLException {
throw new SQLFeatureNotSupportedException();
}
@Override
public final void addBatch() throws SQLException {
throw new SQLFeatureNotSupportedException();