Re: error in the example given for numeric data types

Поиск
Список
Период
Сортировка
От jian he
Тема Re: error in the example given for numeric data types
Дата
Msg-id CACJufxHA0e+cdpifou2LNwSVnVhMVC_kd17n8wn8BCcMv+4qUA@mail.gmail.com
обсуждение исходный текст
Ответ на Fwd: error in the example given for numeric data types  (Priyank Rajvansh <rajvansh.priyank@gmail.com>)
Ответы Re: error in the example given for numeric data types  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: error in the example given for numeric data types  (Priyank Rajvansh <rajvansh.priyank@gmail.com>)
Список pgsql-general
> Page: https://www.postgresql.org/docs/15/datatype-numeric.html

"docs/15" means this url pointer to pg version 15.

> practice=# create table t1(height numeric(3,5));
> ERROR:  NUMERIC scale 5 must be between 0 and precision 3
> LINE 1: create table t1(height numeric(3,5));
>  Please look into the matter and kindly revert back to me whatever you find
> out about this so that i can correct myself incase i misunderstood what the
> document says...

it works in pg15, not in pg14.
see my test: https://dbfiddle.uk/wgfjCx7j



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

Предыдущее
От: Priyank Rajvansh
Дата:
Сообщение: Fwd: error in the example given for numeric data types
Следующее
От: Tom Lane
Дата:
Сообщение: Re: error in the example given for numeric data types