Re: [BUGS] numerics lose scale and precision in views of unions
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: [BUGS] numerics lose scale and precision in views of unions |
| Дата | |
| Msg-id | 10136.1155183817@sss.pgh.pa.us обсуждение |
| Ответ на | Re: [BUGS] numerics lose scale and precision in views of unions (Stephen Frost <sfrost@snowman.net>) |
| Ответы |
Re: [BUGS] numerics lose scale and precision in views of unions
|
| Список | pgsql-hackers |
Stephen Frost <sfrost@snowman.net> writes:
> Makes me curious if it really makes sense to keep trailing zeros...
AFAIR we consider them mainly as a display artifact. An application
that's declared a column as numeric(7,2) is likely to expect to see
exactly two digits after the decimal point.
> Either 1.0 and 1.00 are
> the same thing (and thus should be displayed the same way), or they
> aren't (in which case they should be treated distinctly in, eg, a
> 'select distinct' clause).
Consistency has never been SQL's strong point ;-)
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера