allow prepared statements for testing

This commit is contained in:
Jonathan Shook 2024-10-11 15:11:58 -05:00
parent 152e5d0540
commit c07fa49e04

View File

@ -47,8 +47,8 @@ public class Cqld4PreparedStmtDispenser extends Cqld4BaseOpDispenser {
DriverAdapter adapter, LongFunction<CqlSession> sessionFunc, ParsedOp op, ParsedTemplateString stmtTpl, RSProcessors processors) { DriverAdapter adapter, LongFunction<CqlSession> sessionFunc, ParsedOp op, ParsedTemplateString stmtTpl, RSProcessors processors) {
super(adapter, sessionFunc, op); super(adapter, sessionFunc, op);
if (op.isDynamic("space")) { if (op.isDynamic("space")) {
throw new RuntimeException("Prepared statements and dynamic space values are not supported." + throw new RuntimeException("Prepared statements and dynamic space values are not yet supported" +
" This would churn the prepared statement cache, defeating the purpose of prepared statements."); " but are being implemented");
} }
this.processors = processors; this.processors = processors;
this.stmtTpl = stmtTpl; this.stmtTpl = stmtTpl;