Skip to content

Commit

Permalink
cherry pick #19616 to release-4.0 (#19967)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-srebot authored Sep 21, 2020
1 parent 1650b5b commit d56980b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions expression/expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -1175,6 +1175,14 @@ func scalarExprSupportedByFlash(function *ScalarFunction) bool {
default:
return false
}
case ast.Round:
switch function.Function.PbCode() {
case tipb.ScalarFuncSig_RoundInt, tipb.ScalarFuncSig_RoundReal,
tipb.ScalarFuncSig_RoundDec:
return true
default:
return false
}
default:
return false
}
Expand Down

0 comments on commit d56980b

Please sign in to comment.