Re: small bug on 3-digit years in 9.2-dev

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Marc Cousin <cousinmarc(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: small bug on 3-digit years in 9.2-dev
Date: 2012-07-02 15:17:19
Message-ID: 17058.1341242239@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Marc Cousin <cousinmarc(at)gmail(dot)com> writes:
> While working on the "What's new in 9.2", I think I found a small bug:

Yeah, that code certainly looks wrong, thanks for the report!

> /* Force 100-519 into the 2000's */
> - else if (year >= 100 && year < 519)
> + else if (year >= 100 && year <= 519)

I think "< 520" would be more in keeping with the adjacent coding.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2012-07-02 15:19:39 Re: pgsql: Make walsender more responsive.
Previous Message Thom Brown 2012-07-02 15:11:23 Re: Event Triggers reduced, v1