Commit 8dd814d
#3776 left `logicalOp === 'or'` unreachable: all four call sites pass 'and' —
the sole external caller plus the `$and`/`$or`/`$not` arms — so the ~15
`logicalOp === 'or'` ternaries are dead code.
Keep the parameter rather than prune it. `applyFilterCondition` is `protected`,
i.e. subclass API (`SqliteWasmDriver` here, `TursoDriver` downstream), and the
flag is the seam an override needs to attach a condition into an OR group.
Removing it is source-breaking for any subclass overriding the four-parameter
signature, which under this repo's lockstep versioning costs a whole-stack
major — steep for deleting a flag that changes no behavior.
Document both halves at the method so the arms read as unreachable by design,
not as dead code inviting a "fix" that makes a branch propagate 'or' again —
precisely the #3774 miscompile.
Comment-only. sql-driver-or-filter.test.ts (19 cases) and the full driver-sql
suite (386) stay green; empty changeset since this releases nothing.
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 4cca74c commit 8dd814d
2 files changed
Lines changed: 42 additions & 0 deletions
File tree
- .changeset
- packages/plugins/driver-sql/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3804 | 3804 | | |
3805 | 3805 | | |
3806 | 3806 | | |
| 3807 | + | |
| 3808 | + | |
| 3809 | + | |
| 3810 | + | |
| 3811 | + | |
| 3812 | + | |
| 3813 | + | |
| 3814 | + | |
| 3815 | + | |
| 3816 | + | |
| 3817 | + | |
| 3818 | + | |
| 3819 | + | |
| 3820 | + | |
| 3821 | + | |
| 3822 | + | |
3807 | 3823 | | |
3808 | 3824 | | |
3809 | 3825 | | |
| |||
0 commit comments