Commit Graph

8 Commits (bfb19cd4f6229647f26bb8dcaff37e4f676bf276)

Author SHA1 Message Date
Jack Christensen a457da8bff Unpin extendedQueryBuilder memory immediately after use
refs #1110
2021-11-13 17:12:09 -06:00
Jack Christensen 38dd42de4b Support new pgtype format preferences 2020-05-10 14:09:02 -05:00
Jack Christensen a66b09fbd8 Improve simple protocol / text format
Increased data type support for simple protocol. Improved test
coverage of simple protocol. This has the additional advantage of
exercising the text encoders and decoders.
2020-05-08 16:20:15 -05:00
Jack Christensen f18351f61c Use ++ instead of += 1 2020-05-07 22:28:46 -05:00
jaltavilla 9e94aa87b1 Move the second part of the nil check earlier in the function. This fixes a panic under certain conditions.
1. arg is a pointer to nil
2. The type of arg implements BinaryEncoder or TextEncoder
3. The implementation of that interface uses a non-pointer receiver
2019-10-03 18:31:55 -04:00
Jack Christensen 6972a57421 pgtype.OID type should only be used for scanning and encoding values
It was a mistake to use it in other contexts. This made interop
difficult between pacakges that depended on pgtype such as pgx and
packages that did not like pgconn and pgproto3. In particular this was
awkward for prepared statements.

This is preparation for removing pgx.PreparedStatement in favor of
pgconn.PreparedStatement.
2019-08-24 13:55:57 -05:00
Jack Christensen be89cce214 Fix NULL with extendedQueryBuilder 2019-06-01 17:30:38 -05:00
Jack Christensen ea31df3b50 Extract extendedQueryBuilder 2019-05-04 12:32:21 -05:00