eloquent-filter icon indicating copy to clipboard operation
eloquent-filter copied to clipboard

Where Like %admin% Not Working

Open sunghangga opened this issue 1 year ago • 1 comments

Bug description "where like" query doesn't work only for word %admin% . I have sent directly sql query to database with "select * from users like '%admin%'" and it will show users contains "admin" in the name, but not with eloquent-filter.

Step to reproduce Steps to reproduce the behavior:

  1. Do request with "where like" params, for example: {{urll}}/api/auth/users?name[like]=%admin%.
  2. Result: no data found.

Expected behavior Data containing word "admin" appears.

sunghangga avatar Oct 18 '23 08:10 sunghangga

@sunghangga

Not only I didn't consider any limitation on the word but also we have strong unit tests that have to do with all types of queries. I suggest reviewing your code from scratch.

mehdi-fathi avatar Oct 18 '23 16:10 mehdi-fathi