Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: ubiuser/pgtype

Tags

v1.11.0

Toggle v1.11.0's commit message
Release v1.11.0

v1.10.0

Toggle v1.10.0's commit message
Release v1.10.0

v1.9.1

Toggle v1.9.1's commit message
Release v1.9.1

v1.9.0

Toggle v1.9.0's commit message
Release v1.9.0

v1.8.1

Toggle v1.8.1's commit message
Release v1.8.1

v1.8.0

Toggle v1.8.0's commit message
Release v1.8.0

v1.7.0

Toggle v1.7.0's commit message
Release v1.7.0

v1.6.2

Toggle v1.6.2's commit message
Release v1.6.2

v1.6.1

Toggle v1.6.1's commit message
Fix simple protocol empty array and original recursive empty array issue

Original issue jackc#68

This crash occurred in the recursive assignment system used to support
multidimensional arrays.

This was fixed in 9639a69. However,
that fix incorrectly used nil instead of an empty slice.

In hindsight, it appears the fundamental error is that an assignment to
a slice of a type that is not specified is handled with the recursive /
reflection path. Or another way of looking at it is as an unexpected
feature where []T can now be scanned if individual elements are
assignable to T even if []T is not specifically handled.

But this new reflection / recursive path did not handle empty arrays.

This fix handles the reflection path for an empty slice by allocating an
empty slice.

v1.6.0

Toggle v1.6.0's commit message
AssignTo pointer to pointer to slice and named types

fixes jackc#69