diff options
author | Ting-Wei Lan <lantw44@gmail.com> | 2019-05-07 10:30:02 +0800 |
---|---|---|
committer | Ting-Wei Lan <tingwei.lan@cobinhood.com> | 2019-05-14 11:04:15 +0800 |
commit | 1fb67a439f5725a7926592f55f59e82486641155 (patch) | |
tree | ec1dcc294a231f88e3bcb602d5f53ec0981abf09 | |
parent | 46e5651acbfa39de77fa22b30e50557ca483b152 (diff) | |
download | dexon-1fb67a439f5725a7926592f55f59e82486641155.tar dexon-1fb67a439f5725a7926592f55f59e82486641155.tar.gz dexon-1fb67a439f5725a7926592f55f59e82486641155.tar.bz2 dexon-1fb67a439f5725a7926592f55f59e82486641155.tar.lz dexon-1fb67a439f5725a7926592f55f59e82486641155.tar.xz dexon-1fb67a439f5725a7926592f55f59e82486641155.tar.zst dexon-1fb67a439f5725a7926592f55f59e82486641155.zip |
code backup 33
-rw-r--r-- | core/vm/sqlvm/checker/expr.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/vm/sqlvm/checker/expr.go b/core/vm/sqlvm/checker/expr.go index 86269105b..f9421a32e 100644 --- a/core/vm/sqlvm/checker/expr.go +++ b/core/vm/sqlvm/checker/expr.go @@ -2293,8 +2293,7 @@ func checkModOperator(n *ast.ModOperatorNode, return checkArithmeticBinaryOperator(n, s, o, c, el, tr, ta, fn, op, true, func(v1, v2 decimal.Decimal) decimal.Decimal { - // FIXME: This is wrong. It needs the correct precision to work. - _, r := v1.QuoRem(v2, MaxFractionalPartDigits) + _, r := v1.QuoRem(v2, 0) return r }) } |