mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-26 10:54:32 +02:00
Fix for older SQLite
This commit is contained in:
parent
9d19d8f66d
commit
3c849e97a6
1 changed files with 4 additions and 0 deletions
|
|
@ -144,6 +144,10 @@ class Table:
|
|||
for seqno, cid, name in self.db.conn.execute(column_sql).fetchall():
|
||||
columns.append(name)
|
||||
row["columns"] = columns
|
||||
# These coluns may be missing on older SQLite versions:
|
||||
for key in ("origin", "partial"):
|
||||
if key not in row:
|
||||
row[key] = None
|
||||
indexes.append(Index(**row))
|
||||
return indexes
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue