Fix FT.SEARCH LIMIT option argument parsing
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
@@ -986,7 +986,7 @@ impl Cmd {
|
|||||||
while i < cmd.len() {
|
while i < cmd.len() {
|
||||||
match cmd[i].to_uppercase().as_str() {
|
match cmd[i].to_uppercase().as_str() {
|
||||||
"FILTER" => {
|
"FILTER" => {
|
||||||
if i + 3 >= cmd.len() {
|
if i + 2 >= cmd.len() {
|
||||||
return Err(DBError(
|
return Err(DBError(
|
||||||
"ERR FILTER requires field and value".to_string(),
|
"ERR FILTER requires field and value".to_string(),
|
||||||
));
|
));
|
||||||
|
Reference in New Issue
Block a user