Skip to content

#239 docs: pass bare substrings to like filters in every example - #245

Merged
RAprogramm merged 1 commit into
mainfrom
239
Jul 26, 2026
Merged

#239 docs: pass bare substrings to like filters in every example#245
RAprogramm merged 1 commit into
mainfrom
239

Conversation

@RAprogramm

Copy link
Copy Markdown
Owner

Closes #239

The generated like binding escapes %, _ and \\ in the value and wraps the result in %...%. Every documented example passed a value that already carried wildcards, so the documented call escaped them into literals and matched nothing.

  • Filtering and relations pages in all five wiki languages now pass the bare substring, and the like section states that the macro adds the wildcards and escapes the ones the caller supplies.
  • Added the note that like is always a substring match — prefix- or suffix-only matching is not expressible through it.
  • The sort_keyset trybuild case stopped modelling the wrong call.
  • README attribute reference says the same in one line.
  • The difference from search — which binds the term as given, so a % there is a wildcard — is now stated in the README and in all five wiki pages.

The behaviour itself is already covered by the live-Postgres suite: query_filters_and_sorts asserts that a value containing % matches literally.

@RAprogramm
RAprogramm merged commit 3d60a26 into main Jul 26, 2026
18 checks passed
@RAprogramm
RAprogramm deleted the 239 branch July 26, 2026 06:03
@RAprogramm RAprogramm mentioned this pull request Jul 26, 2026
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.

docs(filtering): like-filter examples pass wildcards the macro escapes

1 participant