Fix selecting empty array
Failing test was in pgx: TestReadingValueAfterEmptyArray
This commit is contained in:
+1
-1
@@ -306,7 +306,7 @@ func (dst NumericArray) Get() interface{} {
|
||||
func (src *NumericArray) AssignTo(dst interface{}) error {
|
||||
switch src.Status {
|
||||
case Present:
|
||||
if len(src.Dimensions) == 1 {
|
||||
if len(src.Dimensions) <= 1 {
|
||||
// Attempt to match to select common types:
|
||||
switch v := dst.(type) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user