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
..
2005-07-14 21:46:30 +00:00
2005-01-01 20:44:34 +00:00
2005-07-10 21:14:00 +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
2005-04-06 23:56:07 +00:00
2005-03-29 00:17:27 +00:00
2005-06-24 01:10:11 +00:00
2005-07-01 19:19:05 +00:00
2004-12-31 22:04:05 +00:00
2005-02-01 00:59:09 +00:00
2005-02-01 00:59:09 +00:00
2005-03-12 20:25:06 +00:00
2005-07-10 21:36:21 +00:00
2004-12-31 22:04:05 +00:00
2005-05-25 22:59:33 +00:00
2005-06-18 19:33:42 +00:00
2004-08-29 05:07:03 +00:00
2004-04-01 21:28:47 +00:00
2005-07-04 04:51:52 +00:00
2005-07-12 16:05:12 +00:00
2004-12-31 22:04:05 +00:00
2004-10-08 01:10:31 +00:00
2005-05-27 00:57:49 +00:00
2005-07-10 21:14:00 +00:00
2005-01-09 21:03:19 +00:00
2005-07-10 21:36:21 +00:00
2005-05-07 15:18:17 +00:00
2005-03-16 00:02:49 +00:00
2005-05-25 21:40:43 +00:00
2005-06-29 22:51:57 +00:00
2004-12-31 22:04:05 +00:00
2005-07-02 17:01:59 +00:00
2005-07-10 04:54:33 +00:00
2005-04-14 20:03:27 +00:00
2005-06-28 05:09:14 +00:00
2005-07-10 21:14:00 +00:00
2005-07-15 18:39:59 +00:00
2005-07-12 16:05:12 +00:00
2005-05-27 00:57:49 +00:00
2005-07-20 03:50:24 +00:00
2005-07-10 21:14:00 +00:00
2005-07-10 21:14:00 +00:00
2005-07-10 21:14:00 +00:00
2003-11-29 19:52:15 +00:00
2004-12-31 22:04:05 +00:00