Ensure WHERE conditions are computed correctly
This commit is contained in:
parent
2b89702490
commit
f6b47d381b
1 changed files with 1 additions and 1 deletions
|
@ -15,8 +15,8 @@ impl<'a> Document<'a> {
|
|||
) -> Result<(), Error> {
|
||||
// Check where condition
|
||||
if let Some(cond) = stm.conds() {
|
||||
if cond.expr.compute(ctx, opt, txn, Some(&self.current)).await?.is_truthy() {
|
||||
// Check if the expression is truthy
|
||||
if !cond.expr.compute(ctx, opt, txn, Some(&self.current)).await?.is_truthy() {
|
||||
// Ignore this document
|
||||
return Err(Error::Ignore);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue