[jOOQ/jOOQ#11512] Implement ParsingStatement.clearParameters()
This commit is contained in:
parent
8191a0f156
commit
c71857c804
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user