-
-
Notifications
You must be signed in to change notification settings - Fork 699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
?_extra=columns parameter causes all rows to return "column-name": "column-name"
#2230
Comments
parameter causes all rows to return
"column-name": "column-name""column-name": "column-name"
The bug isn't in the extra itself: datasette/datasette/views/table.py Lines 1313 to 1315 in 1fc76fe
It must be in the way the other code interacts with it. |
I have a hunch the bug may be in here somewhere: datasette/datasette/renderer.py Lines 47 to 92 in 1fc76fe
|
In the debugger:
|
The bug is here: datasette/datasette/renderer.py Lines 70 to 73 in 1fc76fe
This code assumes that |
Surprising bug: I'm seeing the ID returned as a string when I expect an integer:
|
No, it's OK - that table in fixtures does have strings for primary keys: https://latest.datasette.io/fixtures/primary_key_multiple_columns CREATE TABLE primary_key_multiple_columns (
id varchar(30) primary key,
content text,
content2 text
); |
Originally posted by @simonw in simonw/datasette-search-all#19 (comment)
The text was updated successfully, but these errors were encountered: