Re: numeric field overflow

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: numeric field overflow
Дата
Msg-id 200910091629.n99GTkH22336@momjian.us
обсуждение исходный текст
Ответ на Re: numeric field overflow  (David W Noon <dwnoon@ntlworld.com>)
Список pgsql-general
David W Noon wrote:
> On Tue, 6 Oct 2009 12:20:11 +0600, Nurzhan Kirbassov wrote about
> [GENERAL] numeric field overflow:
>
> [snip]
> >So, does the precision part of the numeric type really means number of
> >digits to the left of the decimal point, or what ?
>
> No.
>
> The precision is the *total* number of decimal digits, both to the left
> and to the right of the decimal point.

Yes, this is confusing, but it is how the standard defines the behavior.

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

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

В списке pgsql-general по дате отправления:

Предыдущее
От: Raymond O'Donnell
Дата:
Сообщение: Re: array question
Следующее
От: Whit Armstrong
Дата:
Сообщение: Re: array question