12 Commits

Author SHA1 Message Date
Jack Christensen
dcaf102f8e Introduce PlanEncode 2022-01-05 08:59:21 -06:00
Jack Christensen
9fc8f9b3a8 Initial passing tests for main pgx package 2021-12-30 18:12:47 -06:00
Jack Christensen
72cc95e4dd Bump module version to v5 2021-12-11 13:29:03 -06:00
Jack Christensen
7e13db4538 Finish import of pgtype repo
Fix some tests that broke by merging repos
Tweak readme wording
2021-12-04 13:45:57 -06:00
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