I'm writing an application that needs to work on both mysql and postgresql.
I have to use like
to compare some values.
In mysql LIKE
it's case insensitive.
In postgresql LIKE
it's case sensitive and ILIKE
it's case insensitive.
What is the best way to make a solid query that works on both in case the match has to be case insensitive ?
Does PDO have a solution for this ?