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

Re: FM format modifier does not remove leading zero from year

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Adrian Klaver <aklaver(at)comcast(dot)net>
Cc: pgsql-general(at)postgresql(dot)org, "Andrus" <kobruleht2(at)hot(dot)ee>
Subject: Re: FM format modifier does not remove leading zero from year
Date: 2010-01-05 15:54:08
Message-ID: 10210.1262706848@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-hackers
Adrian Klaver <aklaver(at)comcast(dot)net> writes:
> From what I could see in the source code
> (src/backend/utils/adt/formatting.c) the year portion of the string is
> not run through the FM modifier. A fix would mean a patch to the above
> AFAIK.

Should it be?  Can anyone check how this works on Oracle?

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Alvaro HerreraDate: 2010-01-05 16:04:08
Subject: Re: We no longer have a fallback for machines without working int64
Previous:From: Tom LaneDate: 2010-01-05 15:53:15
Subject: Re: pg_migrator issues

pgsql-general by date

Next:From: Pavel StehuleDate: 2010-01-05 16:03:47
Subject: Re: Large tables, ORDER BY and sequence/index scans
Previous:From: Milan ZamazalDate: 2010-01-05 15:53:00
Subject: Re: Large tables, ORDER BY and sequence/index scans

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