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

Fail to find table alias to blend in SELECT + JOIN query #36

Closed
panarch opened this issue Aug 16, 2020 · 1 comment
Closed

Fail to find table alias to blend in SELECT + JOIN query #36

panarch opened this issue Aug 16, 2020 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@panarch
Copy link
Member

panarch commented Aug 16, 2020

SELECT user.* FROM item LEFT JOIN user ON user.id = item.user_id;
SELECT * FROM item LEFT JOIN user ON user.id = item.user_id;

Above 2 queries work but,

SELECT Item.* FROM item LEFT JOIN user ON user.id = item.user_id;

This one fails.
[ERR] { "Blend": { "TableNotFound": "item" } }
Blend failed to find table alias.

@panarch panarch added the bug Something isn't working label Aug 16, 2020
@panarch panarch added this to the First Release milestone Aug 16, 2020
@panarch panarch self-assigned this Aug 16, 2020
@panarch
Copy link
Member Author

panarch commented Aug 16, 2020

SELECT item.*, user.*, u2.* FROM item
LEFT JOIN user ON user.id = item.user_id
LEFT JOIN user u2 ON u2.id = item.user_id;

Only u2.* is executed and both item.* and user.* fails with a same error.
[ERR] { "Blend": { "TableNotFound": "{table alias}" } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant