Re: Fixes for MONEY type using locale

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Fixes for MONEY type using locale
Дата
Msg-id 200711241528.lAOFSs507263@momjian.us
обсуждение исходный текст
Ответ на Fixes for MONEY type using locale  (Bruce Momjian <bruce@momjian.us>)
Список 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 по дате отправления:

Предыдущее
От: "D'Arcy J.M. Cain"
Дата:
Сообщение: Re: Fixes for MONEY type using locale
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Fixes for MONEY type using locale