Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions dialect/postgres/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
"net"
"time"

"github.com/jackc/pgtype"
"github.com/jackc/pgx/v4"
Expand Down Expand Up @@ -131,6 +132,15 @@ func marshalRows(rows pgx.Rows) (map[string]interface{}, error) {
}
}

results[k] = values
case pgtype.TimestampArray:
var values []time.Time
if v.Elements != nil {
if err := v.AssignTo(&values); err != nil {
return nil, fmt.Errorf("unable to decode %v+: %w", v, err)
}
}

results[k] = values
case pgtype.Int2Array:
var values []int8
Expand Down
Loading