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

AsteriskFromTable does not honor table alias while rendering sql #1651

Closed
sgnanask opened this issue Oct 27, 2023 · 0 comments
Closed

AsteriskFromTable does not honor table alias while rendering sql #1651

sgnanask opened this issue Oct 27, 2023 · 0 comments
Assignees
Labels
type: bug A general bug

Comments

@sgnanask
Copy link

sgnanask commented Oct 27, 2023

The below code renders SELECT employee.*, e.id FROM employee e instead of SELECT e.*, e.id FROM employee e

Table employee = SQL.table("employee").as("e");
Select innerSelect = Select.builder().select(employee.asterisk()).select(employee.column("id")).from(employee).build();
String sql1 = SqlRenderer.create().render(innerSelect);
System.out.println(sql1);

Is this to be expected?

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 27, 2023
@mp911de mp911de added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 27, 2023
schauder added a commit that referenced this issue Nov 14, 2023
@mp911de mp911de changed the title AsteriskFromTable does not honor table alias while rendering sql AsteriskFromTable does not honor table alias while rendering sql Nov 14, 2023
mp911de pushed a commit that referenced this issue Nov 14, 2023
mp911de added a commit that referenced this issue Nov 14, 2023
Reformat code.

See #1651
Original pull request: #1662
mp911de added a commit that referenced this issue Nov 14, 2023
Reformat code.

See #1651
Original pull request: #1662
@mp911de mp911de added this to the 3.1.6 (2023.0.6) milestone Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
4 participants