Skip to content

Commit

Permalink
expression: fix abs push down sign bug (#8622) (#8628)
Browse files Browse the repository at this point in the history
  • Loading branch information
lysu authored and zz-jason committed Dec 12, 2018
1 parent 68a19bb commit 4e4b225
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 @@ -142,10 +142,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 4e4b225

Please sign in to comment.