Skip to content

Commit e032327

Browse files
committed
Use full typename
1 parent b5da9d5 commit e032327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FluentPostgreSQL/PostgreSQLEnum.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ public protocol PostgreSQLEnum: PostgreSQLExpressionRepresentable, CaseIterable,
55
extension PostgreSQLEnum {
66
/// See `PostgreSQLEnum`.
77
public static var postgreSQLEnumTypeName: String {
8-
return "\(self)".uppercased()
8+
return String(reflecting: self).replacingOccurrences(of: ".", with: "_").uppercased()
99
}
1010

1111
/// See `PostgreSQLDataTypeStaticRepresentable`.

0 commit comments

Comments
 (0)