Jack Christensen
222e3b37bc
Prefer driver.Value over wrap plans when encoding
...
This is tricky due to driver.Valuer returning any. For example, we can
plan for fmt.Stringer because it always returns a string.
Because of this driver.Valuer was always handled as the last option. But
with pgx v5 now having the ability to find underlying types like a
string and supporting fmt.Stringer it meant that driver.Valuer was
often not getting called because something else was found first.
This change tries driver.Valuer immediately after the initial PlanScan
for the Codec. So a type that directly implements a pgx interface should
be used, but driver.Valuer will be prefered before all the attempts to
handle renamed types, pointer deferencing, etc.
fixes https://github.com/jackc/pgx/issues/1319
fixes https://github.com/jackc/pgx/issues/1311
2022-10-01 12:20:23 -05:00
..
2022-04-09 09:12:55 -05:00
2022-08-22 20:26:38 -05:00
2022-07-30 09:10:50 -05: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-07-10 14:31:55 -05:00
2022-04-09 09:12:55 -05:00
2022-07-07 20:29:04 -05: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-04-09 09:12:55 -05:00
2022-10-01 10:41:40 -05:00
2022-08-13 08:09:44 -05: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-08-22 21:01:18 -05:00
2022-08-22 21:01:18 -05:00
2021-12-04 13:07:54 -06:00
2022-07-09 16:47:28 -05: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
2022-09-02 18:37:02 -05:00
2022-09-02 18:37:02 -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-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
2022-06-25 13:33:09 -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-10-01 12:20:23 -05:00
2022-10-01 12:20:23 -05: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
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-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