1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-10 17:42:29 +03:00
Files
postgres/src/backend/utils/adt
Bruce Momjian 826604f9e6 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.
2005-07-20 03:50:24 +00:00
..
2004-12-31 22:04:05 +00:00
2005-01-01 05:43:09 +00:00
2004-12-31 22:04:05 +00:00
2004-08-29 05:07:03 +00:00
2004-12-31 22:04:05 +00:00
2005-07-12 15:17:44 +00:00
2005-07-12 15:17:44 +00:00
2004-12-31 22:04:05 +00:00
2005-01-01 05:43:09 +00:00
2004-12-31 22:04:05 +00:00
2004-12-31 22:04:05 +00:00
2004-08-29 05:07:03 +00:00
2004-12-31 22:04:05 +00:00
2004-12-31 22:04:05 +00:00
2003-11-29 19:52:15 +00:00
2004-12-31 22:04:05 +00:00