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 returning all data when no result found #458

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

raziel057
Copy link
Contributor

This PR fix the current behavior that returns all data when the search criteria lead to no matching results. Currently if the matching ids count is 0 no where clause is added.

This PR add a clause that will never matches in that case to return no data.

With the fix when the search doesn't matches, we have an empty list:

343191040-29dc9102-be16-40d7-b45e-a210abbfdfa7

@bartmcleod bartmcleod merged commit 94de608 into lexik:master Jun 27, 2024
1 check passed
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.

2 participants