Conversation
Member
Author
This was referenced Feb 26, 2026
fe9288b to
fa751d8
Compare
28e0651 to
1206180
Compare
698b8b1 to
1d51229
Compare
1206180 to
0ad1b46
Compare
1d51229 to
5cf4f64
Compare
0ad1b46 to
8d58396
Compare
5cf4f64 to
724cbbd
Compare
ide
approved these changes
Feb 26, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #476 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 110 110
Lines 16183 16198 +15
Branches 882 871 -11
=========================================
+ Hits 16183 16198 +15
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
Author
Merge activity
|
724cbbd to
ffb7a82
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Why
There's a bug in where clause construction, which used SQLFragmentHelpers.and: https://github.com/expo/entity/blob/main/packages/entity-database-adapter-knex/src/internal/EntityKnexDataManager.ts#L303
The bug is that given something like:
it would produce
which has the incorrect parentheses and therefore incorrect precedence.
This exposed more bugs in the precedence in
or,and,join, etc methods.How
The fix is multifold:
joinmethod only be used for comma-separation joining. Rename it tojoinWithCommaSeparator.orandandin parentheses to ensure correct precedence.Test Plan
Run existing tests to ensure nothing breaks, update unit tests and inspect output SQL statements to ensure they are correct parentheses. Especially the
builds complex queries with multiple helperstest case.