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

pgsql: Fix to_char(), to_date(),and to_timestamp() to handle negative/

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix to_char(), to_date(),and to_timestamp() to handle negative/
Date: 2012-08-07 17:34:56
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committers
Fix to_char(), to_date(), and to_timestamp() to handle negative/BC
century specifications just like positive/AD centuries.  Previously the
behavior was either wrong or inconsistent with positive/AD handling.

Centuries without years now always assume the first year of the century,
which is now documented.



Modified Files
doc/src/sgml/func.sgml                    |    4 ++-
src/backend/utils/adt/formatting.c        |   49 +++++++++++++++++++----------
src/test/regress/expected/timestamp.out   |    4 +-
src/test/regress/expected/timestamptz.out |    4 +-
4 files changed, 39 insertions(+), 22 deletions(-)

pgsql-committers by date

Next:From: Robert HaasDate: 2012-08-07 20:00:52
Subject: pgsql: Fix memory leaks in event trigger code.
Previous:From: pgsqlDate: 2012-08-07 03:34:09
Subject: pgsql: Tag refs/tags/REL9_2_BETA3 was created

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