django-watson icon indicating copy to clipboard operation
django-watson copied to clipboard

Escape '@' on MySQL

Open wiedi opened this issue 5 years ago • 2 comments

The '@' character needs escaping in the MySQL backend since @distance was introduced.

Reference: https://dev.mysql.com/doc/refman/5.7/en/fulltext-boolean.html

wiedi avatar Jul 29 '19 10:07 wiedi

The build seems to be failing. It looks like flake8 have updated their default ruleset, but also that unit tests are now failing. Could you address these issues please?

etianen avatar Jul 30 '19 08:07 etianen

The test fails because a search for 'abcd@efgh' will now actually search for 'abcd efgh'.

I'll see if I can fix this by improving the escape function to handle this better.

wiedi avatar Jul 30 '19 10:07 wiedi