mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Use select colnames, not select * for table view - refs #615
This commit is contained in:
parent
d3e9387466
commit
daab48aaf5
2 changed files with 8 additions and 3 deletions
|
|
@ -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"] == [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue