From c556fcb0cede28079577eec5f180c9da4791ba46 Mon Sep 17 00:00:00 2001 From: xiongjiwei Date: Thu, 9 Dec 2021 19:58:02 +0800 Subject: [PATCH] Update expression/builtin_cast.go Co-authored-by: wjHuang --- expression/builtin_cast.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expression/builtin_cast.go b/expression/builtin_cast.go index 99a3dd45c15f2..ebf1903a569ba 100644 --- a/expression/builtin_cast.go +++ b/expression/builtin_cast.go @@ -285,7 +285,7 @@ func (c *castAsStringFunctionClass) getFunction(ctx sessionctx.Context, args []E } bf.tp = c.tp if args[0].GetType().Hybrid() || IsBinaryLiteral(args[0]) { - // when cast from binary to some other charsets, we should check if the binary is valid or not. + // When cast from binary to some other charsets, we should check if the binary is valid or not. // so we build a from_binary function to do this check. ft := args[0].GetType().Clone() ft.Charset, ft.Collate = c.tp.Charset, c.tp.Collate