Skip to content

Commit

Permalink
Panic, wrong columns passed to ProcessQuery (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelewski authored May 14, 2024
1 parent e77ab7d commit 48ab35d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quesma/quesma/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func (q *QueryRunner) handleSearchCommon(ctx context.Context, indexPattern strin
return responseBody, err
}
countQuery := queryTranslator.BuildSimpleCountQuery(simpleQuery.Sql.Stmt)
countResult, err := q.logManager.ProcessQuery(ctx, table, countQuery, q.logManager.GetAllColumns(table, listQuery))
countResult, err := q.logManager.ProcessQuery(ctx, table, countQuery, q.logManager.GetAllColumns(table, countQuery))
if err != nil {
logger.ErrorWithCtx(ctx).Msgf("error processing count query. Err: %v, query: %+v", err, countQuery)
pushSecondaryInfo(q.quesmaManagementConsole, id, path, body, translatedQueryBody, responseBody, startTime)
Expand Down

0 comments on commit 48ab35d

Please sign in to comment.