Skip to content

Commit

Permalink
Merge pull request jmoiron#392 from michaelyou/feature-simplify-get-elem
Browse files Browse the repository at this point in the history
Simplify get Value
  • Loading branch information
jmoiron authored Apr 6, 2018
2 parents cf35089 + 037fdd3 commit 2aeb6a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlx.go
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ func (r *Rows) StructScan(dest interface{}) error {
return errors.New("must pass a pointer, not a value, to StructScan destination")
}

v = reflect.Indirect(v)
v = v.Elem()

if !r.started {
columns, err := r.Columns()
Expand Down

0 comments on commit 2aeb6a9

Please sign in to comment.