This commit is contained in:
Lunny Xiao 2021-06-12 10:47:07 +08:00
parent 9b1e746c6c
commit 1f771b1764
1 changed files with 4 additions and 1 deletions

View File

@ -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
} }