Skip to content

Commit 5918c16

Browse files
author
Shaun Hubbard
committed
yay for differences between PSQL 9/10
1 parent 5541222 commit 5918c16

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/PostgreSQL/Message/PostgreSQLNotificationResponse.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ struct PostgreSQLNotificationResponse: Decodable {
77
let container = try decoder.singleValueContainer()
88
_ = try container.decode(Int32.self) // message length
99
_ = try container.decode(Int32.self) // process id of message
10-
message = try container.decode(String.self)
10+
let channelId = try container.decode(String.self)
11+
let message = try? container.decode(String.self)
12+
self.message = message ?? channelId
1113
}
1214
}

0 commit comments

Comments
 (0)