]> granicus.if.org Git - postgresql/commit
Allow negative years in make_date to represent BC years
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 19 Jan 2017 12:45:38 +0000 (09:45 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 19 Jan 2017 12:45:38 +0000 (09:45 -0300)
commit30bcebbdcf23eb8b78e553c4b3b5eb847410ef19
tree4e9cdf2bd1ef08f2416bb4bb07b6284b570d5147
parent8b07aee8c5d803801c00103f0d61e32356aaf29c
Allow negative years in make_date to represent BC years

There doesn't seem to be any reason not to allow negative years to be
interpreted as BC, so do that.

The documentation is pretty vague on the details of this function, so
nothing needs to change there.

Reported-by: Andy Abelisto, in bug #14446
src/backend/utils/adt/date.c
src/test/regress/expected/date.out
src/test/regress/sql/date.sql