Skip to content

AsteriskFromTable does not honor table alias while rendering sql #1651

Closed
@sgnanask

Description

@sgnanask

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?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions