Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix forced lower case search for json field #15267

Open
wants to merge 4 commits into
base: 3.x
Choose a base branch
from

Conversation

dododedodonl
Copy link
Contributor

@dododedodonl dododedodonl commented Jan 6, 2025

Description

When using ->forceSearchCaseInsensitive() on a column that is accessed via json extraction (eg. data.field), it results in an exception. This is because lower(data->field) does not work for mysql (and mariadb), it should be lower(json_extract(`data`, '$."field"')).

Visual changes

None

Functional changes

  • Code style has been fixed by running the composer cs command.
  • Changes have been tested to not break existing functionality.
  • Documentation is up-to-date.

packages/support/src/helpers.php Outdated Show resolved Hide resolved
@danharrin danharrin added the bug Something isn't working label Jan 7, 2025
@danharrin danharrin added this to the v3 milestone Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants