{"sha": "d0fd833b8cdd97e1b91d0f97a69b494895d82bee", "message": "Add compile option to Dockerfile to fix failing test (fixes #696) (#1223)\n\nThis test was failing when run inside the Docker container:\r\n`test_searchable[/fixtures/searchable.json?_search=te*+AND+do*&_searchmode=raw-expected_rows3]`,\r\n\r\nwith this error:\r\n\r\n```\r\n def test_searchable(app_client, path, expected_rows):\r\n response = app_client.get(path)\r\n> assert expected_rows == response.json[\"rows\"]\r\nE AssertionError: assert [[1, 'barry c...sel', 'puma']] == []\r\nE Left contains 2 more items, first extra item: [1, 'barry cat', 'terry dog', 'panther']\r\nE Full diff:\r\nE + []\r\nE - [[1, 'barry cat', 'terry dog', 'panther'],\r\nE - [2, 'terry dog', 'sara weasel', 'puma']]\r\n```\r\n\r\nThe issue was that the version of sqlite3 built inside the Docker\r\ncontainer was built with FTS3 and FTS4 enabled, but without the\r\n`SQLITE_ENABLE_FTS3_PARENTHESIS` compile option passed, which adds\r\nsupport for using `AND` and `NOT` within `match` expressions (see\r\nhttps://sqlite.org/fts3.html#compiling_and_enabling_fts3_and_fts4 and\r\nhttps://www.sqlite.org/compile.html).\r\n\r\nWithout this, the `AND` used in the search in this test was being\r\ninterpreted as a literal string, and so no matches were found. Adding\r\nthis compile option fixes this.\r\n\r\nThanks, @bobwhitelock", "author_date": "2021-03-07T07:41:17Z", "committer_date": "2021-03-07T07:41:17Z", "raw_author": {"value": "62dd4d3238df6431f690ab98cee3e5a02daf6316", "label": "Bob Whitelock"}, "raw_committer": {"value": "cd792325681cbad9f663f2879d8b69f1edbb678f", "label": "GitHub"}, "repo": {"value": 107914493, "label": "datasette"}, "author": {"value": 7476523, "label": "bobwhitelock"}, "committer": {"value": 19864447, "label": "web-flow"}} {"sha": "22f1d9e1999f70af4c5b0f880a820cd9eead3942", "message": "Expand FTS acronym in --help output", "author_date": "2021-03-07T16:41:49Z", "committer_date": "2021-03-07T16:41:49Z", "raw_author": {"value": "13ae486343ea6454a93114c6f558ffea2f2c6874", "label": "Simon Willison"}, "raw_committer": {"value": "13ae486343ea6454a93114c6f558ffea2f2c6874", "label": "Simon Willison"}, "repo": {"value": 140912432, "label": "sqlite-utils"}, "author": {"value": 9599, "label": "simonw"}, "committer": {"value": 9599, "label": "simonw"}}