aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/variable.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2005-07-20 03:50:24 +0000
committerBruce Momjian <bruce@momjian.us>2005-07-20 03:50:24 +0000
commit826604f9e61c233c4229a3eb4d1ee3945691ee1b (patch)
treefcd99f32749776c311c1b0f7d34c2fd1ee10e5c9 /src/backend/commands/variable.c
parentca76df425bddc050d83546a7a137d7621491ebaa (diff)
downloadpostgresql-826604f9e61c233c4229a3eb4d1ee3945691ee1b.tar.gz
postgresql-826604f9e61c233c4229a3eb4d1ee3945691ee1b.zip
Fix interval division and multiplication, before:
test=> select '4 months'::interval / 5; ?column? --------------- 1 mon -6 days (1 row) after: test=> select '4 months'::interval / 5; ?column? ---------- 24 days (1 row) The problem was the use of rint() to round, and then find the remainder, causing the negative values.
Diffstat (limited to 'src/backend/commands/variable.c')
0 files changed, 0 insertions, 0 deletions