Skip to content

SQLColumn("*", table: ...) not working as expected #180

Description

@ptoffy

Describe the issue

SQLColumn("*", table: ...) is not being correctly serialised

Vapor version

4.101.0

Operating system and version

MacOS 14.2.1

Swift version

Swift Package Manager - Swift 5.10.0-dev

Steps to reproduce

Using SQLColumn("*", table: ...) in a query such as

try await (database as! SQLDatabase).select()
    .column(SQLColumn("*", table: SQLQualifiedTable(Some.schema)))
    .from(Some.schema)
    .all()

results in an error: failed: caught error: "error: no such column: table_name.*".
This does not happen when using

try await (database as! SQLDatabase).select()
    .column(SQLColumn(SQLLiteral.all, table: SQLQualifiedTable(Some.schema)))
    .from(Some.schema)
    .all()

Outcome

No response

Additional notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions