diff options
author | Bruce Momjian <bruce@momjian.us> | 2005-06-04 14:12:50 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2005-06-04 14:12:50 +0000 |
commit | 1bc92352246901eacbbe94e2dbcfb680116f1979 (patch) | |
tree | e938482b7425186cc52c607e1cc9ab91999de1aa /src/backend/parser/parse_expr.c | |
parent | a76606454cba15f85d6bcbc9c73e364cf6a346c5 (diff) | |
download | postgresql-1bc92352246901eacbbe94e2dbcfb680116f1979.tar.gz postgresql-1bc92352246901eacbbe94e2dbcfb680116f1979.zip |
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.
Diffstat (limited to 'src/backend/parser/parse_expr.c')
0 files changed, 0 insertions, 0 deletions