From 1b2db79dbeaf31292092de1a9a0f95a61923d89a Mon Sep 17 00:00:00 2001 From: Sean Chittenden Date: Sun, 11 Jul 2021 14:14:22 -0700 Subject: [PATCH] Decode JSONBOID as binary bytes, like TextOID and JSONOID --- pgtype.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: