Open knightpfhor opened 9 years ago
ILIKE is not specific to postgres I'm pretty sure. And email itself is also supposed to be case insensitive. It might be better to specifically downcase all emails in the query, and create an index on it
Either way searches shouldn't be case sensitive
I've been caught out while copy/pasting email addresses and additional arguments not finding results because the source had a different case to how it had been passed to SendGrid in the first place. Using ILIKE instead of LIKE seems to solve the problem (even if it is unique to POSTGRESQL, I'm not sure if that's a problem for this project or not)