Skip to content

Commit a92f05a

Browse files
committed
Add integration tests for Redis 8 behavior changes in Redis Search
1 parent 8e020c1 commit a92f05a

File tree

2 files changed

+384
-1
lines changed

2 files changed

+384
-1
lines changed

search_commands.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1954,7 +1954,7 @@ func (c cmdable) FTSearchWithArgs(ctx context.Context, index string, query strin
19541954
args = append(args, "WITHCOUNT")
19551955
}
19561956
}
1957-
if options.LimitOffset >= 0 && options.Limit > 0 {
1957+
if options.LimitOffset >= 0 && options.Limit >= 0 {
19581958
args = append(args, "LIMIT", options.LimitOffset, options.Limit)
19591959
}
19601960
if options.Params != nil {

0 commit comments

Comments
 (0)