Skip to content

Adds '*' support for table-qualified column select

Compare
Choose a tag to compare
@VaporBot VaporBot released this 30 Jun 10:08
· 45 commits to main since this release
dd87127
This patch was authored by @NeedleInAJayStack and released by @0xTim.

This adds '*' support to table-qualified columns in selects that mirrors the non-table-qualified column selects. This is mainly a convenience.

For example, before this PR sql.select().column(table: "table", column: "*") would resolve to SELECT `table`.`*` , where '*' was an identifier which was invalid in most cases. Now it will resolve to SELECT `table`.*

Previously to make this query work, it would have to be sql.select().column(SQLColumn(SQLLiteral.all, table: SQLIdentifier("table")), which is kind of cumbersome.