diff --git a/scan.go b/scan.go index c5cb77ff..038c0488 100644 --- a/scan.go +++ b/scan.go @@ -127,7 +127,10 @@ func row2mapStr(rows *core.Rows, types []*sql.ColumnType, fields []string) (map[ 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 }