Skip to content

Commit 2aeb6a9

Browse files
authored
Merge pull request jmoiron#392 from michaelyou/feature-simplify-get-elem
Simplify get Value
2 parents cf35089 + 037fdd3 commit 2aeb6a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ func (r *Rows) StructScan(dest interface{}) error {
601601
return errors.New("must pass a pointer, not a value, to StructScan destination")
602602
}
603603

604-
v = reflect.Indirect(v)
604+
v = v.Elem()
605605

606606
if !r.started {
607607
columns, err := r.Columns()

0 commit comments

Comments
 (0)