mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Workaround for #2353
This commit is contained in:
parent
4e3e8a0124
commit
47333e43c6
1 changed files with 1 additions and 1 deletions
|
|
@ -1123,7 +1123,7 @@ async def derive_named_parameters(db, sql):
|
|||
try:
|
||||
results = await db.execute(explain, {p: None for p in possible_params})
|
||||
return [row["p4"].lstrip(":") for row in results if row["opcode"] == "Variable"]
|
||||
except sqlite3.DatabaseError:
|
||||
except (sqlite3.DatabaseError, AttributeError):
|
||||
return possible_params
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue