This is related to #171.
Ransack is issuing a query that contains the underscores escaped:
... WHERE ((((("spree_users"."email" LIKE 'lol\firstname.lastname@example.org%' ...
I don't think this is the right behaviour for non-MSSQL databases. These characters should not be escaped in non-MSSQL databases.
Revert escaping of underscore characater from #171
Related to #176
Depend on Ransack 0.7.2
This is due to activerecord-hackery/ransack#176.
Pend escaping of underscore characater test
Rerated to #171, #176
Sorry. It's my mistake. Backslash can escape % and _ on MySQL and PostgreSQL only.
In order to work in other databases, I must specify escape character like below.
... WHERE email LIKE 'email@example.com' ESCAPE '!' ...
But arel (3.0.2) does not support ESCAPE.
My escaping method will make problem on databases without MySQL or PostgreSQL. Please revert my commits completely.
Fix overly aggressive escaping on databases that are not PostgreSQL
I am unsure if this is necessary for any other databases.
Relevant to #171