Fix selecting empty array
Failing test was in pgx: TestReadingValueAfterEmptyArray
This commit is contained in:
+1
-1
@@ -192,7 +192,7 @@ func (dst Float4Array) Get() interface{} {
|
||||
func (src *Float4Array) 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