mirror of
https://github.com/simonw/datasette.git
synced 2026-05-27 20:36:17 +02:00
Workaround for intermittent test failure on SQLite 3.25.3
Closes: - #2632
This commit is contained in:
parent
3f8f97e92a
commit
ffadb5f74c
1 changed files with 4 additions and 1 deletions
|
|
@ -706,8 +706,11 @@ def table_column_details(conn, table):
|
|||
).fetchall()
|
||||
]
|
||||
else:
|
||||
# Treat hidden as 0 for all columns
|
||||
# First trigger a query against sqlite_master to fix an intermittent
|
||||
# test failure, see https://github.com/simonw/datasette/issues/2632
|
||||
conn.execute("select 1 from sqlite_master limit 1").fetchall()
|
||||
return [
|
||||
# Treat hidden as 0 for all columns.
|
||||
Column(*(list(r) + [0]))
|
||||
for r in conn.execute(
|
||||
f"PRAGMA table_info({escape_sqlite(table)});"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue