Re: 1.0 in function call not regarded as REAL in 7.3.2

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 1.0 in function call not regarded as REAL in 7.3.2
Дата
Msg-id 8052.1061477350@sss.pgh.pa.us
обсуждение исходный текст
Ответ на 1.0 in function call not regarded as REAL in 7.3.2  (Boris Folgmann <misc@folgmann.com>)
Список pgsql-bugs
Boris Folgmann <misc@folgmann.com> writes:
> Look closely: postmaster now thinks that the first argument 1.0 is NUMERIC,

Yup.  This is not a bug, it's intentional (and per SQL spec, AFAICT).

Your problem is that 123::real/25 yields a double precision result,
which is not implicitly castable to real anymore.  I'd suggest
switching the function arguments to double precision.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: postgresql 7.3.2 bug on date '1901-12-13' and '1901-12
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: postgresql 7.3.2 bug on date '1901-12-13' and '1901-12