Fixed bug on Row page with tables containing spaces

We were attempting to run this SQL:

    select * from "Order%20Details" where ...

On this page:

    http://0.0.0.0:8877/northwind-40d049b/Order%20Details/10250,41
This commit is contained in:
Simon Willison 2017-10-27 00:16:18 -07:00
commit 2c625e31ed

View file

@ -259,6 +259,7 @@ class RowView(BaseView):
def data(self, request, name, hash, table, pk_path):
conn = get_conn(name)
table = urllib.parse.unquote_plus(table)
pk_values = compound_pks_from_path(pk_path)
pks = pks_for_table(conn, table)
wheres = [