{"html_url": "https://github.com/simonw/datasette/issues/135#issuecomment-349047335", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/135", "id": 349047335, "node_id": "MDEyOklzc3VlQ29tbWVudDM0OTA0NzMzNQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-12-04T17:57:08Z", "updated_at": "2017-12-04T17:57:08Z", "author_association": "OWNER", "body": "Turns out there's a bug in this: https://timezones-now-hrjgkinozh.now.sh/timezones-0d61a90/ElementaryGeometries should not be showing the search box.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 275179724, "label": "?_search=x should work if used directly against a FTS virtual table"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/135#issuecomment-349860851", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/135", "id": 349860851, "node_id": "MDEyOklzc3VlQ29tbWVudDM0OTg2MDg1MQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-12-07T04:37:59Z", "updated_at": "2017-12-07T04:37:59Z", "author_association": "OWNER", "body": "I'm testing this like so:\r\n\r\n datasette ~/Dropbox/Development/timezones-api/timezones.db --reload --load-extension /usr/local/lib/mod_spatialite.dylib \r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 275179724, "label": "?_search=x should work if used directly against a FTS virtual table"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/135#issuecomment-349861461", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/135", "id": 349861461, "node_id": "MDEyOklzc3VlQ29tbWVudDM0OTg2MTQ2MQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-12-07T04:43:12Z", "updated_at": "2017-12-07T04:43:12Z", "author_association": "OWNER", "body": "This query looks like it does the right thing:\r\n\r\n select * from sqlite_master\r\n where rootpage = 0\r\n and (\r\n sql like '%VIRTUAL TABLE%USING FTS%content=\"ElementaryGeometries\"%'\r\n or (\r\n tbl_name = \"ElementaryGeometries\"\r\n and sql like '%VIRTUAL TABLE%USING FTS%'\r\n )\r\n ) \r\n\r\nAgainst a table that should not be shown as FTS: https://timezones-now-hrjgkinozh.now.sh/timezones-0d61a90?sql=++++++++select+*+from+sqlite_master%0D%0A++++++++++++where+rootpage+%3D+0%0D%0A++++++++++++and+%28%0D%0A++++++++++++++++sql+like+%27%25VIRTUAL+TABLE%25USING+FTS%25content%3D%22ElementaryGeometries%22%25%27%0D%0A++++++++++++++++or+%28%0D%0A++++++++++++++++++tbl_name+%3D+%22ElementaryGeometries%22%0D%0A++++++++++++++++++and+sql+like+%27%25VIRTUAL+TABLE%25USING+FTS%25%27%0D%0A++++++++++++++++%29%0D%0A++++++++++++%29+\r\n\r\nAgainst a table that SHOULD match: https://sf-trees.now.sh/sf-trees-ebc2ad9?sql=++++++++select+*+from+sqlite_master%0D%0A++++++++++++where+rootpage+%3D+0%0D%0A++++++++++++and+%28%0D%0A++++++++++++++++sql+like+%27%25VIRTUAL+TABLE%25USING+FTS%25content%3D%22Street_Tree_List_fts%22%25%27%0D%0A++++++++++++++++or+%28%0D%0A++++++++++++++++++tbl_name+%3D+%22Street_Tree_List_fts%22%0D%0A++++++++++++++++++and+sql+like+%27%25VIRTUAL+TABLE%25USING+FTS%25%27%0D%0A++++++++++++++++%29%0D%0A++++++++++++%29+", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 275179724, "label": "?_search=x should work if used directly against a FTS virtual table"}, "performed_via_github_app": null}