2
0

Fix encode []any to array

https://github.com/jackc/pgx/issues/1488
This commit is contained in:
Jack Christensen
2023-02-04 07:28:52 -06:00
parent 98543e0354
commit c875abea84
2 changed files with 27 additions and 2 deletions
+3 -1
View File
@@ -60,7 +60,9 @@ func (c *ArrayCodec) PlanEncode(m *Map, oid uint32, format int16, value any) Enc
elementEncodePlan := m.PlanEncode(c.ElementType.OID, format, elementType)
if elementEncodePlan == nil {
return nil
if reflect.TypeOf(elementType) != nil {
return nil
}
}
switch format {