Skip to content
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

Fix for case when table joins, although created by their "logical" order have wrong order in final queries #2261

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jaanusnurmoja
Copy link

Actually it would make more sense if we also create a feature of reordering joins.

example of issue

from one to two
from two to three
from three to four
from four to five

it could produce joins in this order:
left join two on two.one_id= one.id
left join three on three.two_id= two.id
left join five on five.four_id = four.id
left join four on four.three_id = three.id

and error message which says that there is no four.id in field list

…der, have wrong order in final queries

Actually it would make more sense if we create a feature of reordering joins.

example of issue

from one to two
from two to three
from three to four
from four to five

it could produce joins in this order
left join two on two.one_id= one.id
left join three on three.two_id= two.id
left join five on five.four_id = four.id
left join four on four.three_id = three.id

and error message which says that there is no four.id in field list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant