Skip to content

Commit

Permalink
Check if table is nil (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelewski authored May 17, 2024
1 parent a7a03b9 commit 94a0899
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion quesma/quesma/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ func (q *QueryRunner) handleSearchCommon(ctx context.Context, indexPattern strin
var count int

table, _ := tables.Load(resolvedTableName)

if table == nil {
continue
}
var simpleQuery queryparser.SimpleQuery

queryTranslator = NewQueryTranslator(ctx, queryLanguage, table, q.logManager)
Expand Down

0 comments on commit 94a0899

Please sign in to comment.