pgx/pgtype
Jack Christensen 38e09bda4c Fix *wrapSliceEncodePlan[T].Encode
It should pass a FlatArray[T] to the next step instead of a
anySliceArrayReflect. By using a anySliceArrayReflect, an encode of
[]github.com/google/uuid.UUID followed by []string into a PostgreSQL
uuid[] would crash. This was caused by a EncodePlan cache collision
where the second encoding used part of the cached plan of the first.

In proper usage a cache collision shouldn't be able to occur. If this
assertion proves incorrect it will be necessary to add an optional
interface to ScanPlan and EncodePlan that marks the plan as ineligable
for caching. But I have been unable to construct a failing case, and
given that ScanPlans have been cached for quite some time now without
incident I do not think it is possible. This issue only occurred due to
the bug in *wrapSliceEncodePlan[T].Encode.

https://github.com/jackc/pgx/issues/1502
2023-02-21 21:04:30 -06:00
..
zeronull
array.go Fix scanning null did not overwrite slice 2022-04-26 14:52:01 -05:00
array_codec.go Prefer binary format for arrays 2023-02-10 20:21:25 -06:00
array_codec_test.go Prefer binary format for arrays 2023-02-10 20:21:25 -06:00
array_test.go Make array helpers private 2022-04-16 14:21:40 -05:00
bits.go
bits_test.go
bool.go Standardize casing for NULL in error messages 2022-08-22 21:01:18 -05:00
bool_test.go
box.go
box_test.go
builtin_wrappers.go Add support for single dimensional arrays 2022-12-20 20:12:12 -06:00
bytea.go Fix: driver.Value representation of bytea should be []byte not string 2022-12-21 17:54:42 -06:00
bytea_test.go Fix: driver.Value representation of bytea should be []byte not string 2022-12-21 17:54:42 -06:00
circle.go
circle_test.go
composite.go
composite_test.go
convert.go Merge remote-tracking branch 'pgtype/master' into v5-dev 2022-04-23 11:00:07 -05:00
date.go Correct error message 2022-11-12 07:06:54 -06:00
date_test.go Fix text decoding of dates with 5 digit years 2022-11-12 07:01:11 -06:00
doc.go Unregistered OIDs are handled the same as unknown OIDs 2022-12-23 13:14:56 -06:00
enum_codec.go Standardize casing for NULL in error messages 2022-08-22 21:01:18 -05:00
enum_codec_test.go
example_child_records_test.go Skip some examples on CockroachDB 2022-07-23 10:52:35 -05:00
example_custom_type_test.go Add child records docs and examples 2022-07-23 10:11:13 -05:00
example_json_test.go Add child records docs and examples 2022-07-23 10:11:13 -05:00
float4.go Standardize casing for NULL in error messages 2022-08-22 21:01:18 -05:00
float4_test.go
float8.go feat: add marshalJSON for float8 type 2022-09-24 10:00:40 -05:00
float8_test.go
hstore.go
hstore_test.go
inet.go Fix InetCodec.DecodeValue 2022-07-11 08:07:23 -05:00
inet_test.go Use netip package for representing inet and cidr types 2022-07-10 14:31:55 -05:00
int.go pgtype Int fix minimum error message. 2022-12-17 09:10:02 -06:00
int.go.erb pgtype Int fix minimum error message. 2022-12-17 09:10:02 -06:00
int_test.go
int_test.go.erb
integration_benchmark_test.go Fix broken benchmarks 2023-02-10 20:26:18 -06:00
integration_benchmark_test.go.erb Rename ForEachScannedRow to ForEachRow 2022-07-09 16:47:28 -05:00
integration_benchmark_test_gen.sh
interval.go
interval_test.go
json.go Fix scanning json column into **string 2023-01-20 18:38:11 -06:00
json_test.go Fix scanning json column into **string 2023-01-20 18:38:11 -06:00
jsonb.go
jsonb_test.go
line.go
line_test.go
lseg.go Encode text for Lseg includes [ and ] 2022-09-24 10:30:12 -05:00
lseg_test.go
macaddr.go
macaddr_test.go
multirange.go Build / rewrite / port multirange support 2022-04-23 12:50:18 -05:00
multirange_test.go Skip multirange tests on PG < 14 2022-04-23 16:55:24 -05:00
numeric.go add UnmarshalJSON for pgtype Numeric 2023-01-30 21:33:02 -06:00
numeric_test.go add UnmarshalJSON for pgtype Numeric 2023-01-30 21:33:02 -06:00
path.go
path_test.go
pgtype.go Fix *wrapSliceEncodePlan[T].Encode 2023-02-21 21:04:30 -06:00
pgtype_test.go Fix *wrapSliceEncodePlan[T].Encode 2023-02-21 21:04:30 -06:00
point.go
point_test.go
polygon.go
polygon_test.go
qchar.go Standardize casing for NULL in error messages 2022-08-22 21:01:18 -05:00
qchar_test.go
range.go Make range helpers private 2022-04-23 11:10:04 -05:00
range_codec.go Standardize casing for NULL in error messages 2022-08-22 21:01:18 -05:00
range_codec_test.go
range_test.go Make range helpers private 2022-04-23 11:10:04 -05:00
record_codec.go
record_codec_test.go
register_default_pg_types.go Add build tag to skip default PG type registration 2022-08-13 08:09:44 -05:00
register_default_pg_types_disabled.go Add build tag to skip default PG type registration 2022-08-13 08:09:44 -05:00
text.go Standardize casing for NULL in error messages 2022-08-22 21:01:18 -05:00
text_format_only_codec.go
text_test.go Remove rune to text conversion 2022-05-12 17:13:49 -05:00
tid.go Apply `gofmt -s` 2023-01-24 07:55:00 -06:00
tid_test.go
time.go
time_test.go
timestamp.go
timestamp_test.go
timestamptz.go
timestamptz_test.go
uint32.go Standardize casing for NULL in error messages 2022-08-22 21:01:18 -05:00
uint32_test.go
uuid.go Scan binary UUID to string 2022-04-26 08:37:10 -05:00
uuid_test.go Scan binary UUID to string 2022-04-26 08:37:10 -05:00