mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
detect_fts now works with alternative table escaping (#571)
Fixes #570. See also https://github.com/simonw/sqlite-utils/pull/57
This commit is contained in:
parent
f04deebec4
commit
2dc5c8dc25
2 changed files with 7 additions and 3 deletions
|
|
@ -469,6 +469,7 @@ def detect_fts_sql(table):
|
|||
where rootpage = 0
|
||||
and (
|
||||
sql like '%VIRTUAL TABLE%USING FTS%content="{table}"%'
|
||||
or sql like '%VIRTUAL TABLE%USING FTS%content=[{table}]%'
|
||||
or (
|
||||
tbl_name = "{table}"
|
||||
and sql like '%VIRTUAL TABLE%USING FTS%'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue