Commit 6508c9d
fix(sql): wrap json_encode value with LIKE wildcards in array CONTAINS fallback
The fallback LIKE branch in getSQLCondition for CONTAINS/CONTAINS_ANY/NOT_CONTAINS
on array attributes was binding json_encode(value) without wrapping in '%' wildcards,
so instead of substring-matching the JSON-encoded value inside the column, it required
exact equality. This branch is unreachable on MariaDB (JSON_OVERLAPS is supported)
but is the actual code path on SQLite which has no JSON_OVERLAPS.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 5132496 commit 6508c9d
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1649 | 1649 | | |
1650 | 1650 | | |
1651 | 1651 | | |
1652 | | - | |
1653 | | - | |
| 1652 | + | |
| 1653 | + | |
1654 | 1654 | | |
1655 | 1655 | | |
1656 | 1656 | | |
| |||
0 commit comments