Skip to content

Commit

Permalink
expression: correct returntype of TIDB_PARSE_TSO() (#37965)
Browse files Browse the repository at this point in the history
close #37964
  • Loading branch information
dveeden authored Sep 26, 2022
1 parent e904474 commit 8a171c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion expression/builtin_time.go
Original file line number Diff line number Diff line change
Expand Up @@ -6440,7 +6440,7 @@ func (c *tidbParseTsoFunctionClass) getFunction(ctx sessionctx.Context, args []E
return nil, err
}

bf.tp.SetType(mysql.TypeDate)
bf.tp.SetType(mysql.TypeDatetime)
bf.tp.SetFlen(mysql.MaxDateWidth)
bf.tp.SetDecimal(types.DefaultFsp)
sig := &builtinTidbParseTsoSig{bf}
Expand Down

0 comments on commit 8a171c3

Please sign in to comment.