Closed amxyz-cyber closed 1 year ago
Your best bet is to renderSelectQuery
to see what is actually being generated by esqueleto and how that is different from what you expected. The query you have provided has a lot going on as it is, if you can provide a minimal example showing that LIKE clauses are being generated incorrectly then we can do something.
If you can give a reproduction case feel free to reopen this issue
Hi, I adapted the yesod webapp espial to a mysql database. And when I performed the following sql query in Esqueleto, it returned no search results:
However, the same query worked in Mysql Workbench. Also, the original code from espial didn't work either. Only when I created an unsafe function emulating the match against function from Mysql, did I get the desired search results. Do you think, it could be a bug?
In models.persistentmodels the mysql database is defined as follows:
The mysql version of espial is using Esqueleto 3.5.5.0 as well as lts-19.9. What's more, I created search indexes for several columns using Mysql Workbench.