Use select colnames, not select * for table view - refs #615

This commit is contained in:
Simon Willison 2019-11-04 15:03:48 -08:00
commit daab48aaf5
2 changed files with 8 additions and 3 deletions

View file

@ -610,7 +610,8 @@ def test_table_json(app_client):
assert response.status == 200
data = response.json
assert (
data["query"]["sql"] == "select * from simple_primary_key order by id limit 51"
data["query"]["sql"]
== "select id, content from simple_primary_key order by id limit 51"
)
assert data["query"]["params"] == {}
assert data["rows"] == [