Re: Bug #864: MOD(RANDOM(),1.0) don't work in 7.3.1

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bug #864: MOD(RANDOM(),1.0) don't work in 7.3.1
Дата
Msg-id 11123.1041804174@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Bug #864: MOD(RANDOM(),1.0) don't work in 7.3.1  (pgsql-bugs@postgresql.org)
Ответы Re: Bug #864: MOD(RANDOM(),1.0) don't work in 7.3.1  ("Sverre H. Huseby" <shh@thathost.com>)
Список pgsql-bugs
pgsql-bugs@postgresql.org writes:
>   SELECT MOD(RANDOM(),1.0);
> ERROR:  Function mod(double precision, numeric) does not exist
>         Unable to identify a function that satisfies the given argument types
>         You may need to add explicit typecasts

> I was able to work around it by casting RANDOM() to NUMERIC.

This is not a bug, but an intentional change: float->numeric isn't an
implicit cast anymore.

            regards, tom lane

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

Предыдущее
От: Nathan Mueller
Дата:
Сообщение: Re: More SSL patches
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: More SSL patches