You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The lookup for a findall on a hasMany relationship is not producing the correct sql. The inner select statement does not contain all the necessary joins.
It looks like there is already a PR that is attempting to fix this issue (#9900), however pulling in a patch from that PR doesn't address this problem either.
What are you doing?
The lookup for a findall on a hasMany relationship is not producing the correct sql. The inner select statement does not contain all the necessary joins.
It looks like there is already a PR that is attempting to fix this issue (#9900), however pulling in a patch from that PR doesn't address this problem either.
What do you expect to happen?
I was expecting this query to produce the following json output:
What is actually happening?
It is producing an error: missing FROM-clause entry for table "Books"
Output in SQL:
The above sql is missing a join on the inner select statement, causing the error.
Dialect: postgres
Dialect version: 2.1.4
Database version: 2.1.4
Sequelize version: 4.23.2
Tested with latest release: Yes 4.39.0 (If yes, specify that version)
The text was updated successfully, but these errors were encountered: