From: | greg(at)turnstep(dot)com |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | The notorious to_char bug |
Date: | 2002-09-18 13:41:38 |
Message-ID: | 20020918134228.B99BA476834@postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
(From the SQL list:)
> And we know it is a bug:
> * to_char(0,'FM999.99') returns a period, to_char(1,'FM999.99') does not
I took a look at this bug a week ago, and noticed that inside of the file
src/backend/utils/adt/formatting.c
we are specifically causing the above behavior, perhaps in an effort to
mimic Oracle's implementation of it. Unless I am missing something, it
seems that we can simply take out the hack inside of the above file,
or mark the bug as solved...
Search for the strings "terrible" and "terible" to find the spots
inside of formatting.c
Greg Sabino Mullane greg(at)turnstep(dot)com
PGP Key: 0x14964AC8 200209180909
-----BEGIN PGP SIGNATURE-----
iD8DBQE9iIDvvJuQZxSWSsgRAqRLAJ9gV8oTnMFTsSmQzMdKppNlWW/TvACgvDu2
f0TDVbi//F5jwZn7K9+9wLE=
=TIs7
-----END PGP SIGNATURE-----
From | Date | Subject | |
---|---|---|---|
Next Message | Oleg Bartunov | 2002-09-18 13:46:39 | Re: unaccent |
Previous Message | nngodinh | 2002-09-18 12:43:51 | Re: strip a character from text |