mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 09:24:31 +02:00
.enable_fts() now works with columns with spaces in them, closes #90
This commit is contained in:
parent
2ac4ea3c95
commit
0c36feb6ca
2 changed files with 15 additions and 1 deletions
|
|
@ -785,7 +785,7 @@ class Table(Queryable):
|
|||
INSERT INTO [{table}_fts] (rowid, {columns})
|
||||
SELECT rowid, {columns} FROM [{table}];
|
||||
""".format(
|
||||
table=self.name, columns=", ".join(columns)
|
||||
table=self.name, columns=", ".join("[{}]".format(c) for c in columns)
|
||||
)
|
||||
self.db.conn.executescript(sql)
|
||||
return self
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue