Skip to content

Fix long search values causing SQLite LIKE failures#40

Open
Lubrsy706 wants to merge 1 commit into
cloudflare:mainfrom
Lubrsy706:fix/search-query-length-limit
Open

Fix long search values causing SQLite LIKE failures#40
Lubrsy706 wants to merge 1 commit into
cloudflare:mainfrom
Lubrsy706:fix/search-query-length-limit

Conversation

@Lubrsy706
Copy link
Copy Markdown

Summary

  • split long search terms into LIKE-safe chunks before adding % wildcards
  • preserve same-field matching for free-text search by requiring every chunk to match within a single searched column
  • apply the same chunking to query, from, to, and subject filters

Fixes #36.

Verification

  • npm run typecheck
  • npm run build

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.

Potential PR: long search strings can 500 via Durable Object SQLite LIKE pattern limit

1 participant