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

[Experiment] TypeSafe Query Builder - Alias ​​names are ignored in group and order clauses #428

Open
mk3008 opened this issue May 30, 2024 · 0 comments

Comments

@mk3008
Copy link
Owner

mk3008 commented May 30, 2024

Group clauses and order clauses have an affinity with select clauses, so they often copy the contents of the select clause.

There's no point in giving an alias to an order clause, but it's a hassle to correct it, so I think coding will be easier if they're ignored.

Note that the columns that can be specified are limited to columns that belong to formulas or tables, and the currently selected column cannot be specified (same as normal SQL).
To be specific, we should state that "sum(a.price) as total_price" cannot be written as "order by total_price".

The reason is that refactoring will not work.

@mk3008 mk3008 modified the milestones: 0.8.0, 0.8.2 May 30, 2024
@mk3008 mk3008 removed this from the 0.8.2 milestone Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant