2
0

Fix: correctly handle bool type aliases

https://github.com/jackc/pgx/issue/1593
This commit is contained in:
Wichert Akkerman
2023-05-12 12:59:12 +02:00
committed by Jack Christensen
parent 9de41fac75
commit c1c67e4e58
2 changed files with 12 additions and 3 deletions
+1
View File
@@ -1519,6 +1519,7 @@ var kindToTypes map[reflect.Kind]reflect.Type = map[reflect.Kind]reflect.Type{
reflect.Float32: reflect.TypeOf(float32(0)),
reflect.Float64: reflect.TypeOf(float64(0)),
reflect.String: reflect.TypeOf(""),
reflect.Bool: reflect.TypeOf(false),
}
type underlyingTypeEncodePlan struct {