Skip to content

Commit 79da46b

Browse files
Handle NAME Type in PropertyData.string Property (#82)
* Handle .name type with .varchar and .text in PostgresData.string property * Updated fluent CI job to use vapor/swift:5.2 image
1 parent 0206f13 commit 79da46b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- run: swift test --enable-test-discovery --sanitize=thread
3737
fluent:
3838
container:
39-
image: vapor/swift:5.1
39+
image: vapor/swift:5.2
4040
services:
4141
psql:
4242
image: postgres

Sources/PostgresNIO/Data/PostgresData+String.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ extension PostgresData {
1212
switch self.formatCode {
1313
case .binary:
1414
switch self.type {
15-
case .varchar, .text:
15+
case .varchar, .text, .name:
1616
guard let string = value.readString(length: value.readableBytes) else {
1717
return nil
1818
}

0 commit comments

Comments
 (0)