Re: Upcoming 8.0.2 Release

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, List pgsql-hackers <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: Upcoming 8.0.2 Release
Date: 2005-03-26 00:44:01
Message-ID: 20259.1111797841@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Karel Zak <zakkr(at)zf(dot)jcu(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-03-26 01:03:09 Re: Bug 1500
Previous Message Jim Buttafuoco 2005-03-26 00:27:10 Re: Missing segment 3 of index