Skip to content

Commit

Permalink
prepare options in IndexQueryHandler#processStatement
Browse files Browse the repository at this point in the history
  • Loading branch information
smiklosovic committed Dec 5, 2024
1 parent 387b4f6 commit 6cbf40f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ class IndexQueryHandler extends QueryHandler with Logging {
options: QueryOptions,
queryStartNanoTime: Long): ResultMessage = {

options.prepare(statement.getBindVariables)
if (statement.getBindVariables.size != options.getValues.size) throw new InvalidRequestException("Invalid amount of bind variables")
if (!state.getClientState.isInternal) QueryProcessor.metrics.regularStatementsExecuted.inc()

// Intercept Lucene index searches
statement match {
case select: SelectStatement =>
Expand Down

0 comments on commit 6cbf40f

Please sign in to comment.