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
pull/81/head
Simon Willison 2017-10-27 00:16:18 -07:00
rodzic 1592fd0419
commit 2c625e31ed
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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 = [