Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group