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

case_insensitive search does not search for upper case keywords #2917

Closed
yajra opened this issue Dec 6, 2022 Discussed in #2899 · 0 comments
Closed

case_insensitive search does not search for upper case keywords #2917

yajra opened this issue Dec 6, 2022 Discussed in #2899 · 0 comments

Comments

@yajra
Copy link
Owner

yajra commented Dec 6, 2022

Discussed in #2899

Originally posted by uchajk November 12, 2022
Case insensitive will search the keyword in lower case format. SQL: LOWER(column) LIKE LOWER(keyword)
'case_insensitive' => true,

I've got an issue with this part of the documentation. Particular column in my table is in upper case and so when searching in lower case:
$keyword = 'abc'
$column = LOWER('ABC')
this works just fine

When searching upper case though:
$keyword = 'ABC'
$column = LOWER('ABC')
does not match the column. LOWER(keyword) is not applied.

yajra added a commit that referenced this issue Dec 6, 2022
fix: case insensitive starts with search #2917
@yajra yajra closed this as completed Dec 6, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant