-
Notifications
You must be signed in to change notification settings - Fork 140
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
db(...).select('id').first().id now gives an AttributeError #246
Comments
Ok, we finally had a real use-case for #229 |
@kjkuan the output is correct. On both master and v0.12.25 you get the same output
However it's not clear to me why that happen, you should get in both situations the first output. |
No this is correct. The problem is that something else is broken. |
so adding |
I run this tests with the latest trunk: assert row.y==1assert row['y']==1 except for the commented one they all pass. And honestly I cannot say the commented one should pass. In fact probably it is correct that id does not. So unless we introduced a slow down in the code I think everything is fine here. |
This used to work... . Now, the
id
attribute is placed inside an_extra
dict.Example:
This actually happens to any fields you
select()
not justid
.The text was updated successfully, but these errors were encountered: