-
Notifications
You must be signed in to change notification settings - Fork 49
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
ambiguous column reference \"id\" when using $joinRelation and $select together #38
Comments
You should use $pick instead of $select when using $eager. it behaves different, but ends up with the same results. |
$pick returns a list of empty objects and doesn't call the custom SQL function in the query. Again, I'm using $select to call a custom function (comment_hotness) in my db.
SQL query
Results
|
Thanks for sharing this. I'll try to debug this on the weekend. |
Thanks @Aerlin, your suggested bug fix is published in v1.3.1 |
Thank you! |
I'm using $select to include a custom sql function in my comments query.
Which works well.
A problem I'm having is when I try to filter based on a relationship value, I get the ambiguous column name error.
A test query.
Error that's returned.
In feathers-object index.js, adding the table's name to line 240 seems to fix it.
The new sql query.
The query then executes as expected.
The text was updated successfully, but these errors were encountered: