Merge pull request #3 from Selvatico/allow-any-type

to not convert every value to []byte
This commit is contained in:
Davyd Dzhahaiev
2017-08-08 16:31:32 +02:00
committed by GitHub
+1 -1
View File
@@ -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)
}