mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fixed bug where tables with a column called n caused 500 errors
Closes #1228
This commit is contained in:
parent
32963018e7
commit
4e47a2d894
7 changed files with 59 additions and 37 deletions
|
|
@ -86,6 +86,7 @@ async def test_table_exists(db, tables, exists):
|
|||
"tags",
|
||||
"complex_array",
|
||||
"distinct_some_null",
|
||||
"n",
|
||||
],
|
||||
),
|
||||
(
|
||||
|
|
@ -204,6 +205,15 @@ async def test_table_columns(db, table, expected):
|
|||
is_pk=0,
|
||||
hidden=0,
|
||||
),
|
||||
Column(
|
||||
cid=10,
|
||||
name="n",
|
||||
type="text",
|
||||
notnull=0,
|
||||
default_value=None,
|
||||
is_pk=0,
|
||||
hidden=0,
|
||||
),
|
||||
],
|
||||
),
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue