Skip to content

Fix literal asterisks in date title search - #3

Merged
Filionus merged 2 commits into
mainfrom
fix/literal-date-search
Nov 26, 2026
Merged

Filionus merged 2 commits into
mainfrom
fix/literal-date-search

Conversation

@ChargingCrystal

Copy link
Copy Markdown
Owner

Summary

Use PostgreSQL's literal pattern prefix with PostgREST's case-insensitive match operator for date title search. PostgREST previously expanded asterisks to percent wildcards in the ilike filter.

Verification

  • Red commit 27fedae: searching for an asterisk returned all nine fixture titles, with one expected.
  • Verified asterisk, percent, underscore, backslash, comma, both parentheses, both quote types, and ordinary mixed-case search through the built Nitro route and real PostgREST 16.6.
  • npm test passed all 52 tests and npm run build passed.

Frontend impact is limited to literal title matching. The query parameter, response shape, and sort and pagination behavior stay the same.

@Filionus
Filionus merged commit 46f5eda into main Nov 26, 2026
1 check passed
@ChargingCrystal
ChargingCrystal deleted the fix/literal-date-search branch November 26, 2026 10:07
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.

2 participants