Fix FT.SEARCH LIMIT option argument parsing

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
Lee Smet
2025-08-25 13:35:25 +02:00
parent 65c297ca94
commit e5fcaf81b5

View File

@@ -986,7 +986,7 @@ impl Cmd {
while i < cmd.len() {
match cmd[i].to_uppercase().as_str() {
"FILTER" => {
if i + 3 >= cmd.len() {
if i + 2 >= cmd.len() {
return Err(DBError(
"ERR FILTER requires field and value".to_string(),
));