pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix assorted breakage in to_char()'s OF format option. 3+ messages / 1 participants [nested] [flat]
* pgsql: Fix assorted breakage in to_char()'s OF format option. @ 2016-03-17 19:50 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2016-03-17 19:50 UTC (permalink / raw) To: pgsql-committers Fix assorted breakage in to_char()'s OF format option. In HEAD, fix incorrect field width for hours part of OF when tm_gmtoff is negative. This was introduced by commit 2d87eedc1d4468d3 as a result of falsely applying a pattern that's correct when + signs are omitted, which is not the case for OF. In 9.4, fix missing abs() call that allowed a sign to be attached to the minutes part of OF. This was fixed in 9.5 by 9b43d73b3f9bef27, but for inscrutable reasons not back-patched. In all three versions, ensure that the sign of tm_gmtoff is correctly reported even when the GMT offset is less than 1 hour. Add regression tests, which evidently we desperately need here. Thomas Munro and Tom Lane, per report from David Fetter Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/55c3a04d60ccea9e999088fb847ceeb9fd4dd927 Modified Files -------------- src/backend/utils/adt/formatting.c | 11 ++++--- src/test/regress/expected/timestamptz.out | 51 +++++++++++++++++++++++++++++++ src/test/regress/sql/timestamptz.sql | 17 +++++++++++ 3 files changed, 75 insertions(+), 4 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Fix assorted breakage in to_char()'s OF format option. @ 2016-03-17 19:50 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2016-03-17 19:50 UTC (permalink / raw) To: pgsql-committers Fix assorted breakage in to_char()'s OF format option. In HEAD, fix incorrect field width for hours part of OF when tm_gmtoff is negative. This was introduced by commit 2d87eedc1d4468d3 as a result of falsely applying a pattern that's correct when + signs are omitted, which is not the case for OF. In 9.4, fix missing abs() call that allowed a sign to be attached to the minutes part of OF. This was fixed in 9.5 by 9b43d73b3f9bef27, but for inscrutable reasons not back-patched. In all three versions, ensure that the sign of tm_gmtoff is correctly reported even when the GMT offset is less than 1 hour. Add regression tests, which evidently we desperately need here. Thomas Munro and Tom Lane, per report from David Fetter Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/d0a585c6997de6aebd5866c9c1791a1badfcee0a Modified Files -------------- src/backend/utils/adt/formatting.c | 10 ++++-- src/test/regress/expected/timestamptz.out | 51 +++++++++++++++++++++++++++++++ src/test/regress/sql/timestamptz.sql | 17 +++++++++++ 3 files changed, 75 insertions(+), 3 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Fix assorted breakage in to_char()'s OF format option. @ 2016-03-17 19:50 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2016-03-17 19:50 UTC (permalink / raw) To: pgsql-committers Fix assorted breakage in to_char()'s OF format option. In HEAD, fix incorrect field width for hours part of OF when tm_gmtoff is negative. This was introduced by commit 2d87eedc1d4468d3 as a result of falsely applying a pattern that's correct when + signs are omitted, which is not the case for OF. In 9.4, fix missing abs() call that allowed a sign to be attached to the minutes part of OF. This was fixed in 9.5 by 9b43d73b3f9bef27, but for inscrutable reasons not back-patched. In all three versions, ensure that the sign of tm_gmtoff is correctly reported even when the GMT offset is less than 1 hour. Add regression tests, which evidently we desperately need here. Thomas Munro and Tom Lane, per report from David Fetter Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/17a250b189a94a470e37ce14d0ebf72390c86d4d Modified Files -------------- src/backend/utils/adt/formatting.c | 10 ++++-- src/test/regress/expected/timestamptz.out | 51 +++++++++++++++++++++++++++++++ src/test/regress/sql/timestamptz.sql | 17 +++++++++++ 3 files changed, 75 insertions(+), 3 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2016-03-17 19:50 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2016-03-17 19:50 pgsql: Fix assorted breakage in to_char()'s OF format option. Tom Lane <tgl@sss.pgh.pa.us> 2016-03-17 19:50 pgsql: Fix assorted breakage in to_char()'s OF format option. Tom Lane <tgl@sss.pgh.pa.us> 2016-03-17 19:50 pgsql: Fix assorted breakage in to_char()'s OF format option. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox