Re: [BUGS] Re: Interval bug

2001-01-11 Thread Thomas Lockhart
> ... Should we print the "days" +/- > sign only when it is not the same as the "year" sign? Seems like the > way to go. It isn't quite that easy, but you have the right idea. My new code omits signs unless there is a negative field value, then all subsequent fields are signed. That seems to be

Re: [BUGS] Re: Interval bug

2001-01-11 Thread Bruce Momjian
Wow, this was interesting. I never suspected that in: -1 year 360 days 00:00 the "360 days" is positive, while the "-1 year" was negative, but I can now see how that can very easily happen. Should we print the "days" +/- sign only when it is not the same as the "year" sign? Seems lik

[BUGS] Re: Interval bug

2001-01-11 Thread Thomas Lockhart
> Secondly, we have a problem with interval math, detailed below. Should > be reproducible on any platform(?) > Version: 7.0.2 (is it fixed in the latest?) Yes, but may need a little more fixup... > =# select '2 years ago'::interval + '1 year 360 days 00:00'::interval; >?column? > -