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

2012-07-02 Thread Tom Lane
Marc Cousin 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

[HACKERS] small bug on 3-digit years in 9.2-dev

2012-07-02 Thread Marc Cousin
Hi, While working on the "What's new in 9.2", I think I found a small bug: SELECT to_date('519-07-02','YYY-MM-DD'); to_date 0519-07-02 (1 row) It comes, I think, from the year 519 case not being handled in the following code. Patch attached + if (year < 70) +