diff --git a/pgtype.go b/pgtype.go index 4a68084..5edf9f4 100644 --- a/pgtype.go +++ b/pgtype.go @@ -783,7 +783,7 @@ func (ci *ConnInfo) PlanScan(oid uint32, formatCode int16, dst interface{}) Scan } case *[]byte: switch oid { - case ByteaOID, TextOID, VarcharOID, JSONOID: + case ByteaOID, TextOID, VarcharOID, JSONOID, JSONBOID: return scanPlanBinaryBytes{} } case BinaryDecoder: