Re: Upcoming 8.0.2 Release - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Upcoming 8.0.2 Release
Date
Msg-id 20259.1111797841@sss.pgh.pa.us
Whole thread Raw
In response to Re: Upcoming 8.0.2 Release  (Karel Zak <zakkr@zf.jcu.cz>)
List pgsql-hackers
Karel Zak <zakkr@zf.jcu.cz> writes:
>> What do you think about just adding
>> 
>> case DCH_MONTH:
>> +           if (!tm->tm_mon)
>> +               return 0;

>> and similarly in each of the other case arms that use tm_mon?

> Yes, I think you're right. It's because original code was for non-
> interval 'tm' struct where is no problem with zeros.

OK, patch applied.  (I had it wrong above, correct return value is -1.)
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Jim Buttafuoco"
Date:
Subject: Re: Missing segment 3 of index
Next
From: Tom Lane
Date:
Subject: Re: Bug 1500