Fixed bug with FTS against tables with hyphens in the name

pull/104/head
Simon Willison 2017-11-19 21:59:53 -08:00
rodzic a5881e105a
commit 523c6f9e3a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: FBB38AFE227189DB
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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
)
)