Fix to_date() and to_timestamp() to handle year masks of length < 4 so

Bruce Momjian <bruce@momjian.us>

Commit: 029dfdf1157b6d837a7b7211cd35b00c6bcd767c
Author: Bruce Momjian <bruce@momjian.us>
Date: 2011-09-07T13:47:51Z
Releases: 9.2.0
Fix to_date() and to_timestamp() to handle year masks of length < 4 so
they wrap toward year 2020, rather than the inconsistent behavior we had
before.

Files

PathChange+/−
doc/src/sgml/func.sgml modified +9 −0
src/backend/utils/adt/formatting.c modified +32 −26