{"html_url": "https://github.com/simonw/datasette/issues/651#issuecomment-568269476", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/651", "id": 568269476, "node_id": "MDEyOklzc3VlQ29tbWVudDU2ODI2OTQ3Ng==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-12-22T14:46:37Z", "updated_at": "2019-12-22T14:47:03Z", "author_association": "OWNER", "body": "https://stackoverflow.com/a/43756146 says that an escaping mechanism that works is this one:\r\n\r\n select * from blah where term match '\"bacon\" \"and\" \"eggs\"'\r\n\r\nSo split on whitespace and then encapsulate each search term in double quotes.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 539590148, "label": "fts5 syntax error when using punctuation"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/651#issuecomment-568268746", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/651", "id": 568268746, "node_id": "MDEyOklzc3VlQ29tbWVudDU2ODI2ODc0Ng==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-12-22T14:37:37Z", "updated_at": "2019-12-22T14:37:37Z", "author_association": "OWNER", "body": "I've not yet been able to figure out what the escaping rule are for FTS5 queries.\r\n\r\nIf we figure out how those work maybe we can bundle them as a custom function?\r\n\r\n select ... where docs_fts match fts_escape(:search)\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 539590148, "label": "fts5 syntax error when using punctuation"}, "performed_via_github_app": null}