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

pgsql: Re-allow input of Julian dates prior to 0001-01-01 AD.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Re-allow input of Julian dates prior to 0001-01-01 AD.
Date: 2010-09-23 03:49:00
Message-ID: E1Oycns-0000ro-63@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Re-allow input of Julian dates prior to 0001-01-01 AD.

This was unintentionally broken in 8.4 while tightening up checking of
ordinary non-Julian date inputs to forbid references to "year zero".
Per bug #5672 from Benjamin Gigot.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=6f664c1af4ebb8d4f131af04d5762ac6f720b70b

Modified Files
--------------
src/backend/utils/adt/datetime.c       |   37 +++++++++++++++++++++----------
src/test/regress/expected/horology.out |   13 +++++++++++
src/test/regress/sql/horology.sql      |    3 ++
3 files changed, 41 insertions(+), 12 deletions(-)

pgsql-committers by date

Next:From: Simon RiggsDate: 2010-09-23 06:20:19
Subject: Re: Configuring synchronous replication
Previous:From: Tom LaneDate: 2010-09-23 02:35:56
Subject: pgsql: More fixes for libpq's .gitignore file.

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