diff options
Diffstat (limited to 'vendor/github.com/uptrace/bun/model_table_slice.go')
-rw-r--r-- | vendor/github.com/uptrace/bun/model_table_slice.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vendor/github.com/uptrace/bun/model_table_slice.go b/vendor/github.com/uptrace/bun/model_table_slice.go index b49e0ce03..67b421460 100644 --- a/vendor/github.com/uptrace/bun/model_table_slice.go +++ b/vendor/github.com/uptrace/bun/model_table_slice.go @@ -68,6 +68,9 @@ func (m *sliceTableModel) ScanRows(ctx context.Context, rows *sql.Rows) (int, er for rows.Next() { m.strct = m.nextElem() + if m.sliceOfPtr { + m.strct = m.strct.Elem() + } m.structInited = false if err := m.scanRow(ctx, rows, dest); err != nil { |