mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Double quote around column names
This means filters still work even with column names that contain spaces
This commit is contained in:
parent
e55bc3b2fa
commit
d94d4465d7
1 changed files with 1 additions and 1 deletions
2
app.py
2
app.py
|
|
@ -225,7 +225,7 @@ class RowView(BaseView):
|
||||||
pk_values = compound_pks_from_path(pk_path)
|
pk_values = compound_pks_from_path(pk_path)
|
||||||
pks = pks_for_table(conn, table)
|
pks = pks_for_table(conn, table)
|
||||||
wheres = [
|
wheres = [
|
||||||
'{}=?'.format(pk)
|
'"{}"=?'.format(pk)
|
||||||
for pk in pks
|
for pk in pks
|
||||||
]
|
]
|
||||||
sql = 'select * from "{}" where {}'.format(
|
sql = 'select * from "{}" where {}'.format(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue