]> granicus.if.org Git - postgresql/commit
Peter found bug in the to_char() routine for PL/MI options. This
authorBruce Momjian <bruce@momjian.us>
Thu, 20 Mar 2003 05:19:26 +0000 (05:19 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 20 Mar 2003 05:19:26 +0000 (05:19 +0000)
commit94701fb24b4397a4fc1a8441980ed499a8cc991c
tree707231f47f87e176ee19af1df05b42e1d742fa81
parent8000fdd4621ef08b633588530d97e5ab83eb166e
 Peter found bug in the to_char() routine for PL/MI options. This
 patch fix it -- but this patch doesn't contains tests or docs fixes. I
 will send it later.

 Fixed outputs:

select  to_char(x, '9999.999')  as x,
        to_char(x, 'S9999.999') as s,
        to_char(x, 'SG9999.999') as sg,
        to_char(x, 'MI9999.999') as mi,
        to_char(x, 'PL9999.999') as pl,
        to_char(x, 'PLMI9999.999') as plmi,
        to_char(x, '9999.999SG') as sg2,
        to_char(x, '9999.999PL') as pl2,
        to_char(x, '9999.999MI') as mi2 from num;

Karel Zak
src/backend/utils/adt/formatting.c