mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-23 02:14:30 +02:00
[] escaping for FTS columns
This commit is contained in:
parent
fd1b6eb82d
commit
62e1edeaf6
1 changed files with 3 additions and 1 deletions
|
|
@ -238,7 +238,9 @@ class Table:
|
||||||
content="{table}"
|
content="{table}"
|
||||||
);
|
);
|
||||||
""".format(
|
""".format(
|
||||||
table=self.name, columns=", ".join(columns), fts_version=fts_version
|
table=self.name,
|
||||||
|
columns=", ".join("[{}]".format(c) for c in columns),
|
||||||
|
fts_version=fts_version,
|
||||||
)
|
)
|
||||||
self.db.conn.executescript(sql)
|
self.db.conn.executescript(sql)
|
||||||
self.populate_fts(columns)
|
self.populate_fts(columns)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue