Skip to content

Commit

Permalink
Change evalToDateTime with evalToDate
Browse files Browse the repository at this point in the history
Signed-off-by: Noble Mittal <[email protected]>
  • Loading branch information
beingnoble03 committed Jan 29, 2024
1 parent f0c716b commit b485c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/vtgate/evalengine/fn_time.go
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ func (b *builtinToDays) eval(env *ExpressionEnv) (eval, error) {
if date == nil {
return nil, nil
}
dt := evalToDateTime(date, -1, env.now, env.sqlmode.AllowZeroDate())
dt := evalToDate(date, env.now, env.sqlmode.AllowZeroDate())
if dt == nil || dt.isZero() {
return nil, nil
}
Expand Down

0 comments on commit b485c58

Please sign in to comment.