Skip to content

Commit

Permalink
Fix errata in operator for numbers (#2)
Browse files Browse the repository at this point in the history
Co-authored-by: AndriiYer <andrii.yermakov@yalantis.net>
  • Loading branch information
andriy-yermakov and AndriiYer authored Dec 11, 2024
1 parent 9d50648 commit ff37c81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filter/ops/op_val_nums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ impl OpValueToOpValType for $ov {
("$gt", Value::Number(num)) => $ov::Gt($asfn(num)?),
("$gte", Value::Number(num)) => $ov::Gte($asfn(num)?),

("$null", Value::Number(num)) => $ov::Gte($asfn(num)?),
("$null", Value::Bool(v)) => $ov::Null(v),

(_, value) => return Err(Error::JsonOpValNotSupported{
operator: op.to_string(),
Expand Down

0 comments on commit ff37c81

Please sign in to comment.