Fix for detect_fts failing on [], refs #694

This commit is contained in:
Simon Willison 2026-06-21 15:54:19 -07:00
commit 1a28416e10
2 changed files with 24 additions and 1 deletions

View file

@ -2776,7 +2776,7 @@ class Table(Queryable):
)
""").strip()
args = {
"like": '%VIRTUAL TABLE%USING FTS%content="{}"%'.format(self.name),
"like": "%VIRTUAL TABLE%USING FTS%content=[{}]%".format(self.name),
"like2": '%VIRTUAL TABLE%USING FTS%content="{}"%'.format(self.name),
"table": self.name,
}