Skip to content

[3.0] Fold PM author search values on PostgreSQL - #9903

Open
mattago93 wants to merge 1 commit into
SimpleMachines:release-3.0from
mattago93:fix-9598-pm-author-search-postgresql
Open

mattago93 wants to merge 1 commit into
SimpleMachines:release-3.0from
mattago93:fix-9598-pm-author-search-postgresql

Conversation

@mattago93

Copy link
Copy Markdown

Fixes personal message searches by author on PostgreSQL when the supplied name contains uppercase characters.

The search already uses {column_ci:} to perform case-insensitive comparisons on member and guest author name columns, but the corresponding search values still use {string:}.

This change replaces those two value placeholders with {string_ci:}, ensuring both sides of each comparison are case-folded on PostgreSQL while preserving MySQL behavior.

Verification:

  • 10 isolated SQL regression checks passed.
  • Confirmed the original comparisons fail for mixed-case search values.
  • Full SMF integration tests and PostgreSQL tests have not been run.

Issues References (Fixes|Related|Closes)

Fixes #9598

Use the database-aware string_ci placeholder alongside column_ci
when matching member and guest author names in personal message search.
This preserves MySQL behavior and ensures both operands are folded on
PostgreSQL.

Fixes SimpleMachines#9598

Signed-off-by: Mattia Agostini <agostini.19@gmail.com>
@github-actions github-actions Bot added the PM label Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[3.0]: Searching personal messages by author finds nothing on PostgreSQL

1 participant