-
-
Notifications
You must be signed in to change notification settings - Fork 398
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
Issue selecting multiple columns from related table in v10 #1737
Comments
Note this is may be related to #1562 |
I was able to get the same or very similar behavior as v9 by doing the following. It produce a single query:
Given |
I would try: return q.Column("Related.id", "Related.name"), nil or return q.Column("your_alias.id", "your_alias.name"), nil Closing since there is no reproducer and guessing is no fun. |
This doesn't work 👎 , This is simply ADD two same field in the query, but the query already include all the fileds! |
I'm having an issue upgrading from v9 to v10. Before, I could select specific columns from the related table (this is a many2many) like so:
From my reading it seems like the replacement for this should be:
However this gives me warning such as "ERROR #42702 column reference "id" is ambiguous". What is the recommended way to select specific columns from a related table? Or is there a bug somewhere?
The text was updated successfully, but these errors were encountered: