mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fixed bug with FTS against tables with hyphens in the name
This commit is contained in:
parent
a5881e105a
commit
523c6f9e3a
1 changed files with 1 additions and 1 deletions
|
|
@ -456,7 +456,7 @@ class TableView(BaseView):
|
|||
search = special_args.get('_search')
|
||||
if search and fts_table:
|
||||
where_clauses.append(
|
||||
'rowid in (select rowid from {fts_table} where {fts_table} match :search)'.format(
|
||||
'rowid in (select rowid from [{fts_table}] where [{fts_table}] match :search)'.format(
|
||||
fts_table=fts_table
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue