Re: Fixes for MONEY type using locale - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: Fixes for MONEY type using locale
Date
Msg-id 200711241528.lAOFSs507263@momjian.us
Whole thread Raw
In response to Fixes for MONEY type using locale  (Bruce Momjian <bruce@momjian.us>)
List pgsql-patches
Patch applied.  I will email on this LAST_DIGIT issue separately.

---------------------------------------------------------------------------

Bruce Momjian wrote:
> In looking at the use of the thousands separator in formatting.c and
> psql/print.c, I now see similar problems with the MONEY type, namely
> that if the thousands separator is "" it is set to "," even if the
> decimal separator is ",".
>
> The attached patch fixes this.
>
> I also removed a ssymbol test because ssymbol will never be \0 based on
> the code.  Also, what does this do:
>
>     if (buf[LAST_DIGIT] == ',')
>         buf[LAST_DIGIT] = buf[LAST_PAREN];
>
> --
>   Bruce Momjian  <bruce@momjian.us>        http://momjian.us
>   EnterpriseDB                             http://postgres.enterprisedb.com
>
>   + If your life is a hard drive, Christ can be your backup. +


>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
>        choose an index scan if your joining column's datatypes do not
>        match

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://postgres.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

pgsql-patches by date:

Previous
From: "D'Arcy J.M. Cain"
Date:
Subject: Re: Fixes for MONEY type using locale
Next
From: Bruce Momjian
Date:
Subject: Re: Fixes for MONEY type using locale