Skip to content

Commit

Permalink
expression: fix abs push down sign bug (pingcap#8622)
Browse files Browse the repository at this point in the history
  • Loading branch information
lysu authored and iamzhoug37 committed Dec 13, 2018
1 parent 477a1b0 commit d71ff3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions expression/builtin_math.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ func (c *absFunctionClass) getFunction(ctx sessionctx.Context, args []Expression
case types.ETInt:
if mysql.HasUnsignedFlag(argFieldTp.Flag) {
sig = &builtinAbsUIntSig{bf}
sig.setPbCode(tipb.ScalarFuncSig_AbsInt)
sig.setPbCode(tipb.ScalarFuncSig_AbsUInt)
} else {
sig = &builtinAbsIntSig{bf}
sig.setPbCode(tipb.ScalarFuncSig_AbsUInt)
sig.setPbCode(tipb.ScalarFuncSig_AbsInt)
}
case types.ETDecimal:
sig = &builtinAbsDecSig{bf}
Expand Down

0 comments on commit d71ff3a

Please sign in to comment.