Re: Upcoming 8.0.2 Release

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Karel Zak <zakkr@zf.jcu.cz>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>, List pgsql-hackers <pgsql-hackers@postgreSQL.org>
Date: 2005-03-26T00:44:01Z
Lists: 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