improve
This commit is contained in:
parent
9b1e746c6c
commit
1f771b1764
5
scan.go
5
scan.go
|
@ -127,7 +127,10 @@ func row2mapStr(rows *core.Rows, types []*sql.ColumnType, fields []string) (map[
|
||||||
scanResults[i] = &s
|
scanResults[i] = &s
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := rows.Scan(scanResults...); err != nil {
|
if err := engine.driver.Scan(&dialects.ScanContext{
|
||||||
|
DBLocation: engine.DatabaseTZ,
|
||||||
|
UserLocation: engine.TZLocation,
|
||||||
|
}, rows, types, scanResults...); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue