Skip to content

Commit

Permalink
Merge pull request #3 from Selvatico/allow-any-type
Browse files Browse the repository at this point in the history
to not convert every value to []byte
  • Loading branch information
Daavaa authored Aug 8, 2017
2 parents c530fd4 + 42bfac5 commit 82e79c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (smt *FakeStmt) QueryContext(ctx context.Context, args []driver.NamedValue)
for _, record := range fResp.Response {
oneRow := &row{cols: make([]interface{}, len(columnNames))}
for _, col := range columnNames {
oneRow.cols[colIndexes[col]] = []byte(record[col].(string))
oneRow.cols[colIndexes[col]] = record[col]
}
rows = append(rows, oneRow)
}
Expand Down

0 comments on commit 82e79c1

Please sign in to comment.