Closed jasonlaw closed 4 years ago
what server? ms sql?
MySQL
For MySQL, forceIgnoreCase does nothing as by default LIKE (which is used here) is case insensitive by default, according to this: https://dev.mysql.com/doc/refman/8.0/en/case-sensitivity.html unless you have table/column definition as binary or with case sensitive collation. So first, get printout of the SQL that was executed, make sure it is LIKE there; then check the collation settings on database, table and column
Thanks for the clarification. My database indeed has the collation utf8mb4_bin which is case sensitive. Just managed to convert it to utf8mb4_unicode_ci, and it is working fine now. Thank you very much!
Hi,
I expect the search in the below code would ignore case, but it is not. Bug?