Skip to content

Commit 3adaee5

Browse files
authored
rm bpchar to int support, use char with quotes (vapor#73)
1 parent c5010f3 commit 3adaee5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/PostgresNIO/Data/PostgresData+Int.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ private extension PostgresData {
115115
switch self.formatCode {
116116
case .binary:
117117
switch self.type {
118-
case .char, .bpchar:
118+
case .char:
119119
assert(value.readableBytes == 1)
120120
guard let uint8 = value.getInteger(at: value.readerIndex, as: UInt8.self) else {
121121
return nil

Tests/PostgresNIOTests/PostgresNIOTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ final class PostgresNIOTests: XCTestCase {
986986
defer { try! conn.close().wait() }
987987
let rows = try conn.query("""
988988
select
989-
$1::char as int
989+
$1::"char" as int
990990
""", [
991991
.init(uint8: 5)
992992
]).wait()

0 commit comments

Comments
 (0)