Re: [HACKERS] numeric & decimal

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема Re: [HACKERS] numeric & decimal
Дата
Msg-id 37371E46.13434AA0@alumni.caltech.edu
обсуждение исходный текст
Ответ на Re: [HACKERS] numeric & decimal  (jwieck@debis.com (Jan Wieck))
Ответы Re: [HACKERS] numeric & decimal  (jwieck@debis.com (Jan Wieck))
Re: [HACKERS] numeric & decimal  (Bruce Momjian <maillist@candle.pha.pa.us>)
Список pgsql-hackers
> > > NUMERIC  without size is interpreted as NUMERIC(x,6). Why ?
> > > Standard SQL92 says that NUMERIC without size is equivalent
> > > to NUMERIC(1)
>     PostgreSQL specific. Should I change it to standard?

The standard (per Date's book) is:
 NUMERIC == NUMERIC(p), where p is implementation-defined. NUMERIC(p) == NUMERIC(p,0)

Date also explicitly says that:
 "The following are implementation-defined: ... o The default precision for NUMERIC and DECIMAL if there is no
declaredprecision ..."
 

So where did NUMERIC(1) come from? afaict Jan should use what he feels
are reasonable values...
                    - Tom

-- 
Thomas Lockhart                lockhart@alumni.caltech.edu
South Pasadena, California


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

Предыдущее
От: "D'Arcy" "J.M." Cain
Дата:
Сообщение: Re: [HACKERS] INSERT INTO
Следующее
От: Oleg Bartunov
Дата:
Сообщение: Re: [HACKERS] 6.5 cvs ERROR: copyObject: don't know how to copy 604