weird ilike postgres behavior
hi, I have a very weird issue when trying to filter using ilike in postgres, both my local instance which is running in docker and fly.io postgres, which suggests this is a drizzle issue, here is the schema of my table:
the full code of my remix loader:
the non expected weird thing is that only searching by the
name
column works, the grouping
is ignored, if I exclude grouping
from where clause, like so: phrase ? ilike(points.name, like) : undefined,
, search by name is working, but, if I do the same with the grouping
column phrase ? ilike(points.grouping, like) : undefined,
no results are matched, even though .toSQL
output works in the db explorer console, what could be the issue? I attached some screens of the feature I'm working on2 Replies
Enable logging in drizzle and view the raw sql query that it executes, then you can see whether or not its correct
I have and the issue is, the sql is correct, but when I run it in db tool it gives a different result than drizzle
never mind, I just found out that it's actually correct, it's react-select that doesn't display the results, thanks for help