Skip to content

0.1.4: LIKE becomes ILIKE in the sqlite dialect - #2

Merged
ralyodio merged 2 commits into
mainfrom
fix/like-ilike
Sep 25, 2026
Merged

ralyodio merged 2 commits into
mainfrom
fix/like-ilike

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

SQLite's LIKE is case-insensitive (ASCII); Postgres's is not. Every search a SQLite app wrote with LIKE silently lost its case-insensitive matches after a port: c0upons' /api/search?q=shoes returned a different half of its 50 results on Postgres. The sqlite-dialect rewriter now emits ILIKE (NOT LIKE → NOT ILIKE, ESCAPE kept); string literals stay untouched through the code mask. README dialect table updated; unit test added (127/127).

🤖 Generated with Claude Code

ralyodio and others added 2 commits September 25, 2026 17:11
SQLite's LIKE is case-insensitive for ASCII; Postgres's is not, so every
search an app wrote against SQLite silently lost its case-insensitive matches
after a port (c0upons' coupon search returned a different half of its
results). The rewriter now emits ILIKE (NOT LIKE -> NOT ILIKE, ESCAPE kept);
string literals are untouched via the code mask.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit 475d586 into main Sep 25, 2026
4 checks passed
@ralyodio
ralyodio deleted the fix/like-ilike branch September 25, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant