Skip to content

Commit

Permalink
for test
Browse files Browse the repository at this point in the history
  • Loading branch information
Defined2014 committed Aug 28, 2024
1 parent d041cd0 commit a0faf27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/expression/expr_to_pb.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ func (pc PbConverter) scalarFuncToPBExpr(expr *ScalarFunction) *tipb.Expr {

// put collation information into the RetType enforcedly and push it down to TiKV/MockTiKV
tp := *expr.RetType
if collate.NewCollationEnabled() {
if collate.NewCollationEnabled() && expr.FuncName.L != "cast" {
_, str1 := expr.CharsetAndCollation()
tp.SetCollate(str1)
}
Expand Down

0 comments on commit a0faf27

Please sign in to comment.