mirror of
https://github.com/wahyd4/go-mocket.git
synced 2026-08-09 04:46:54 +10:00
to not convert every value to []byte
allows to put different types of data. For example time.Time and represent it correctly in output struct when using mocked replies
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user