kopia lustrzana https://github.com/simonw/datasette
Double quote around column names
This means filters still work even with column names that contain spacesmagic-columns
rodzic
e55bc3b2fa
commit
d94d4465d7
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(
|
||||||
|
|
Ładowanie…
Reference in New Issue