mirror of
https://github.com/jackc/pgx.git
synced 2025-07-09 03:58:06 +00:00
Fix tryBaseTypeScanPlan infinite recursion
This commit is contained in:
parent
c39924d0c6
commit
b99d95470f
@ -850,7 +850,7 @@ func tryBaseTypeScanPlan(dst interface{}) (plan *baseTypeScanPlan, nextDst inter
|
||||
if dstValue.Kind() == reflect.Ptr {
|
||||
elemValue := dstValue.Elem()
|
||||
nextDstType := elemKindToBasePointerTypes[elemValue.Kind()]
|
||||
if nextDstType != nil {
|
||||
if nextDstType != nil && dstValue.Type() != nextDstType {
|
||||
return &baseTypeScanPlan{dstType: dstValue.Type(), nextDstType: nextDstType}, dstValue.Convert(nextDstType).Interface(), true
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user