mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Don't incorrectly detect VIEWs as supporting FTS
This commit is contained in:
parent
a81c62d848
commit
c5c923d93c
2 changed files with 6 additions and 1 deletions
|
|
@ -287,7 +287,10 @@ def detect_fts_sql(table):
|
|||
where rootpage = 0
|
||||
and (
|
||||
sql like '%VIRTUAL TABLE%USING FTS%content="{table}"%'
|
||||
or tbl_name = "{table}"
|
||||
or (
|
||||
tbl_name = "{table}"
|
||||
and sql not like 'CREATE VIEW%'
|
||||
)
|
||||
)
|
||||
'''.format(table=table)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue