Fix NUMERIC modulus to properly truncate division in computation.
Division rounding was causing incorrect results. Test case: test=> SELECT 12345678901234567890 % 123; ?column? ---------- 78 (1 row) Was returning -45.
Showing
Please register or sign in to comment