Commit Graph

3 Commits (88dfc22ae4aa031783cda90841d5358edd85ff2c)

Author SHA1 Message Date
Jack Christensen 88dfc22ae4 Fix simple protocol encoding of json.RawMessage
The underlying type of json.RawMessage is a []byte so to avoid it being
considered binary data we need to handle it specifically. This is done
by registerDefaultPgTypeVariants. In addition, handle json.RawMessage in
the JSONCodec PlanEncode to avoid it being mutated by json.Marshal.

https://github.com/jackc/pgx/issues/1763
2024-03-02 15:12:20 -06:00
Lev Zakharov 7c386112e3 fix concurrency bug in pgtype.defaultMap (#1650) 2023-06-18 08:23:56 -05:00
Lev Zakharov 90f9aad67f add singleton pgtype.Map for default type mappings 2023-06-14 08:21:28 -05:00