Re: BUG #16143: PGTYPEStimestamp_fmt_asc() returns the incorrect month when the format specifier %b is used.
Tomas Vondra <tomas.vondra@2ndquadrant.com>
From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: paul@intekon.com, pgsql-bugs@lists.postgresql.org
Date: 2019-11-30T14:21:25Z
Lists: pgsql-bugs
On Fri, Nov 29, 2019 at 10:36:14PM +0100, Tomas Vondra wrote: >On Fri, Nov 29, 2019 at 03:43:44PM -0500, Tom Lane wrote: >>Tomas Vondra <tomas.vondra@2ndquadrant.com> writes: >>>The attached patch should fix this, I believe - both for %b and %B. >> >>Yeah, I'd just come to the same conclusion. You're welcome to >>do the commits, of course. >> > >OK, I'll commit shortly. > OK, pushed with backpatch to all supported branches. Turns out this is a pretty ancient bug - it's there since at least 2003, I stopped digging after that. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Fix off-by-one error in PGTYPEStimestamp_fmt_asc
- d9b974e9947e 9.4.26 landed
- a17602de18f7 9.5.21 landed
- c59414da7bd3 9.6.17 landed
- f71b22f537b9 10.12 landed
- 9668bf5d5215 11.7 landed
- 0dafed6fedf4 12.2 landed
- 3ff660bbeb96 13.0 landed