You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try using it, but I'm stuck with what I think is an invalid parsing.
Here is a minimal example:
use cql2::Expr;pubfnmain(){let s = "(floors>5 AND material='brick') OR swimming_pool=true";let query = s.parse::<Expr>().expect("should be valid query");assert_eq!(
query.to_text().unwrap(),r#"(("floors" > 5) AND ("material" = 'brick')) OR ("swimming_pool" = true)"#);}
thread 'main' panicked at examples/test.rs:8:5:
assertion `left == right` failed
left: "((\"floors\" > 5) AND (\"material\" = 'brick') AND (\"swimming_pool\" = true))"
right: "((\"floors\" > 5) AND (\"material\" = 'brick')) OR (\"swimming_pool\" = true)"
The AND/OR combination becomes only 2 AND.
The example is from fixtures/test/example17.txt: (floors>5 AND material='brick') OR swimming_pool=true, but strangely it's not the same as the tests/expected/text/example17.txt (and I think it's because this file is generated).
The text was updated successfully, but these errors were encountered:
Hi, thanks a lot for this project.
I try using it, but I'm stuck with what I think is an invalid parsing.
Here is a minimal example:
The
AND
/OR
combination becomes only 2AND
.The example is from
fixtures/test/example17.txt
:(floors>5 AND material='brick') OR swimming_pool=true
, but strangely it's not the same as thetests/expected/text/example17.txt
(and I think it's because this file is generated).The text was updated successfully, but these errors were encountered: