mirror of
https://github.com/wahyd4/go-mocket.git
synced 2026-08-09 04:46:54 +10:00
Merge pull request #3 from Selvatico/allow-any-type
to not convert every value to []byte
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