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

Warn when a table is included multiple times #44

Closed
simolus3 opened this issue Jun 24, 2019 · 0 comments
Closed

Warn when a table is included multiple times #44

simolus3 opened this issue Jun 24, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@simolus3
Copy link
Owner

It's possible to express the following query in moor

select(table).join([innerJoin(table, /* ... */)])

However, it won't generate valid sql as all the columns are included multiple times. We should warn about a possible typo and suggest to create an alias to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant