Skip to content

Commit 2b0e8a9

Browse files
committed
Fix PostgreSQLUpsert.upsert bug
1 parent c74c887 commit 2b0e8a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/PostgreSQL/SQL/PostgreSQLUpsert.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public struct PostgreSQLUpsert: SQLSerializable {
66
public typealias Expression = PostgreSQLExpression
77

88
/// See `SQLUpsert`.
9-
public static func upsert(_ columns: [PostgreSQLColumnIdentifier]? = nil, _ values: [(Identifier, Expression)]) -> PostgreSQLUpsert {
9+
public static func upsert(_ columns: [PostgreSQLColumnIdentifier]?, _ values: [(Identifier, Expression)]) -> PostgreSQLUpsert {
1010
if let columns = columns, !columns.isEmpty {
1111
return self.init(columns: columns, values: values)
1212
} else {

0 commit comments

Comments
 (0)