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
..
2022-04-09 09:12:55 -05:00
2023-02-10 20:21:25 -06:00
2023-02-10 20:21:25 -06:00
2022-04-16 14:21:40 -05:00
2022-04-26 14:52:01 -05:00
2022-04-09 09:12:55 -05:00
2022-04-09 09:12:55 -05:00
2022-04-02 14:34:19 -05:00
2022-08-22 21:01:18 -05:00
2022-04-02 14:34:19 -05:00
2022-04-09 09:12:55 -05:00
2022-12-20 20:12:12 -06:00
2022-12-21 17:54:42 -06:00
2022-12-21 17:54:42 -06:00
2022-04-02 14:34:19 -05:00
2022-04-09 09:12:55 -05:00
2022-04-09 09:12:55 -05:00
2022-04-09 09:12:55 -05:00
2022-04-23 11:00:07 -05:00
2022-11-12 07:01:11 -06:00
2022-11-12 07:06:54 -06:00
2022-12-23 13:14:56 -06:00
2022-04-09 09:12:55 -05:00
2022-08-22 21:01:18 -05:00
2022-07-23 10:52:35 -05:00
2022-07-23 10:11:13 -05:00
2022-07-23 10:11:13 -05:00
2022-04-09 09:09:46 -05:00
2022-08-22 21:01:18 -05:00
2022-04-09 09:09:46 -05:00
2022-09-24 10:00:40 -05:00
2022-04-09 09:12:55 -05:00
2022-04-09 09:12:55 -05:00
2022-07-10 14:31:55 -05:00
2022-07-11 08:07:23 -05:00
2022-04-09 09:09:46 -05:00
2022-04-09 09:09:46 -05:00
2022-12-17 09:10:02 -06:00
2022-12-17 09:10:02 -06:00
2021-12-04 13:07:54 -06:00
2023-02-10 20:26:18 -06:00
2022-07-09 16:47:28 -05:00
2022-04-02 14:34:19 -05:00
2022-04-09 09:12:55 -05:00
2023-01-20 18:38:11 -06:00
2023-01-20 18:38:11 -06:00
2022-04-09 09:12:55 -05:00
2022-04-09 09:12:55 -05:00
2022-04-02 14:34:19 -05:00
2022-04-09 09:12:55 -05:00
2022-04-02 14:34:19 -05:00
2022-09-24 10:30:12 -05:00
2022-04-09 09:12:55 -05:00
2022-04-09 09:12:55 -05:00
2022-04-23 16:55:24 -05:00
2022-04-23 12:50:18 -05:00
2023-01-30 21:33:02 -06:00
2023-01-30 21:33:02 -06:00
2022-04-09 09:12:55 -05:00
2022-04-09 09:12:55 -05:00
2023-02-21 21:04:30 -06:00
2023-02-21 21:04:30 -06:00
2022-04-02 14:34:19 -05:00
2022-04-09 09:12:55 -05:00
2022-04-09 09:12:55 -05:00
2022-04-09 09:12:55 -05:00
2022-04-02 14:34:19 -05:00
2022-08-22 21:01:18 -05:00
2022-04-16 10:39:12 -05:00
2022-08-22 21:01:18 -05:00
2022-04-23 11:10:04 -05:00
2022-04-23 11:10:04 -05:00
2022-04-09 09:12:55 -05:00
2022-04-09 09:12:55 -05:00
2022-08-13 08:09:44 -05:00
2022-08-13 08:09:44 -05:00
2022-01-08 16:24:05 -06:00
2022-05-12 17:13:49 -05:00
2022-08-22 21:01:18 -05:00
2022-04-02 14:34:19 -05:00
2023-01-24 07:55:00 -06:00
2022-04-02 14:34:19 -05:00
2022-04-09 09:12:55 -05:00
2022-04-02 14:34:19 -05:00
2022-04-09 09:12:55 -05:00
2022-04-02 14:34:19 -05:00
2022-04-09 09:12:55 -05:00
2022-04-02 14:34:19 -05:00
2022-08-22 21:01:18 -05:00
2022-04-26 08:37:10 -05:00
2022-04-26 08:37:10 -05:00