You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hit an assertion failure in PostgresData+Int.swift:
switch self.formatCode {
case .binary:
switch self.type {case.char,.bpchar:assert(value.readableBytes ==1) // <- Here
debugger output at that point:
(lldb) po self.type
▿ BPCHAR
- rawValue : 1042
(lldb) po postgresData.debugDescription
"Optional(0x0020 (BPCHAR))"
(lldb) po self.debugDescription
"0x0020 (BPCHAR)"
and value.readableBytes is 2.
Most likely has to do with CHAR(1) columns I have in my tables although those tables are empty when I hit the assertion.
The text was updated successfully, but these errors were encountered:
tkrajacic
changed the title
assertionFailure because internal typename for CHAR(n) is BPCHAR
assertion failure because internal typename for CHAR(n) is BPCHAR
Dec 19, 2019
I hit an assertion failure in
PostgresData+Int.swift
:debugger output at that point:
and
value.readableBytes
is2
.Most likely has to do with CHAR(1) columns I have in my tables although those tables are empty when I hit the assertion.
The text was updated successfully, but these errors were encountered: