mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
@ -772,12 +772,6 @@ func handleArguments(sql string, args []interface{}) (newSql string, newArgs []i
|
||||
newArgs = append(newArgs, arg)
|
||||
continue
|
||||
|
||||
// Special handling for gtime.Time/*gtime.Time.
|
||||
//
|
||||
// DO NOT use its underlying gtime.Time.Time as its argument,
|
||||
// because the std time.Time will be converted to certain timezone
|
||||
// according to underlying driver. And the underlying driver also
|
||||
// converts the time.Time to string automatically as the following does.
|
||||
case gtime.Time:
|
||||
newArgs = append(newArgs, arg.(gtime.Time).Time)
|
||||
continue
|
||||
|
||||
@ -48,7 +48,7 @@ func init() {
|
||||
Port: "3306",
|
||||
User: TestDbUser,
|
||||
Pass: TestDbPass,
|
||||
Timezone: "Asia/Shanghai",
|
||||
Timezone: "Asia/Shanghai", // For calculating UT cases of datetime zones in convenience.
|
||||
Name: parser.GetOpt("name", "").String(),
|
||||
Type: parser.GetOpt("type", "mysql").String(),
|
||||
Role: "master",
|
||||
|
||||
@ -40,7 +40,7 @@ func init() {
|
||||
Port: "3306",
|
||||
User: TestDbUser,
|
||||
Pass: TestDbPass,
|
||||
Timezone: "Asia/Shanghai",
|
||||
Timezone: "Asia/Shanghai", // For calculating UT cases of datetime zones in convenience.
|
||||
Name: parser.GetOpt("name", "").String(),
|
||||
Type: parser.GetOpt("type", "mysql").String(),
|
||||
Role: "master",
|
||||
|
||||
Reference in New Issue
Block a user