Skip to content

Commit

Permalink
Respect driver.Rows' aversion for string
Browse files Browse the repository at this point in the history
  • Loading branch information
lxn committed May 19, 2012
1 parent 7e02e95 commit fbe80d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ func (r *sqlRows) Next(dest []driver.Value) error {

if isNull {
val = nil
} else if s, ok := val.(string); ok {
val = ([]byte)(s)
}

dest[i] = val
Expand Down

0 comments on commit fbe80d3

Please sign in to comment.