bitemyapp / esqueleto

New home of Esqueleto, please file issues so we can get things caught up!
BSD 3-Clause "New" or "Revised" License
370 stars 107 forks source link

Fix semantics of `not_` applied over `&&.` and `||.` #379

Open blujupiter32 opened 9 months ago

blujupiter32 commented 9 months ago

This PR fixes #359 by always wrapping arguments to not_ in parentheses when building SQL queries. Some tests combining not_ with &&. and ||. have also been added to Common.Test.

This is technically a breaking change: not_ (x &&. y) is no longer equivalent to (not_ x) &&. y, for example, although the equivalence is probably unintended.


Before submitting your PR, check that you've:

After submitting your PR: