limbo/sql_generation/generation/predicate
Mikaël Francoeur b30b02e1ad
fix AND/OR precedence in predicate generator
The shadow model was building WHERE predicates by manually nesting
Expr::Binary nodes, which caused AND/OR expressions to be evaluated
left-to-right instead of using SQLite’s precedence rules. Mixed
expressions like `a OR b AND c` were effectively generated as
`(a OR b) AND c`.

Update the predicate generator to use Predicate::and / Predicate::or
to combine context predicates, letting those helpers insert the
appropriate parentheses. This ensures that AND groups are formed
before OR and that the resulting Expr tree matches SQLite’s logical
evaluation order.
2025-12-02 21:35:03 -05:00
..
binary.rs adjust generation of GTValue and LTValue to accomodate for Null Values 2025-10-13 02:04:15 -03:00
mod.rs fix AND/OR precedence in predicate generator 2025-12-02 21:35:03 -05:00
unary.rs add ?Sized to Arbitrary traits 2025-10-07 02:36:13 -03:00