ITADN

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

#180Openptoffy 创建于 2024-06-11
bug
P
ptoffycommented
### 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 ```swift 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 ```swift try await (database as! SQLDatabase).select() column(SQLColumn(SQLLiteral.all, table: SQLQualifiedTable("table_name"))) .from(Some.schema) .all() ``` ### Outcome _No response_ ### Additional notes _No response_
0 条评论