0ee94759f7
Previously, we would pass SQLite FTS5 MATCH queries as is from the SEARCH parameter, when searching for messages. By default FTS5 queries follow a specific syntax, e.g. AND, OR, ... can be used to filter searches logically. Passing special characters in these unescaped queries, like `.`, would be rejected by SQLite, failing the SEARCH request. Here, in order to replicate PostgreSQL and FS behavior, we simply want to search for the string as is, and not give it glob or logic operators semantics. To do that, we quote each token of the string, skipping over separators. |
||
---|---|---|
.. | ||
database.go | ||
postgres_test.go | ||
postgres.go | ||
sqlite_mattn.go | ||
sqlite_modernc.go | ||
sqlite_stub.go | ||
sqlite_test.go | ||
sqlite.go |