Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
  • Loading branch information
wjhuang2016 committed Feb 8, 2023
1 parent a675249 commit 1b399db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/time.go
Original file line number Diff line number Diff line change
Expand Up @@ -2005,7 +2005,7 @@ func parseTime(sc *stmtctx.StatementContext, str string, tp byte, fsp int, isFlo
}

t.SetType(tp)
if err = t.check(sc, nil); err != nil {
if err = t.check(sc, explicitTz); err != nil {
return NewTime(ZeroCoreTime, tp, DefaultFsp), errors.Trace(err)
}
return t, nil
Expand Down

0 comments on commit 1b399db

Please sign in to comment.