Re: real or float4 '=' operator is broken in 7.1.2

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: real or float4 '=' operator is broken in 7.1.2
Дата
Msg-id 20266.996043507@sss.pgh.pa.us
обсуждение исходный текст
Ответ на real or float4 '=' operator is broken in 7.1.2  (pgsql-bugs@postgresql.org)
Список pgsql-bugs
pgsql-bugs@postgresql.org writes:
> real or float4 '=' operator is broken in 7.1.2

No, it isn't --- try coercing the values you are comparing against
to be float4.  Your error is in assuming that 29.92::float8 should
equal 29.92::float4 coerced back to float8.  Which might be a nice
property to have, but it's not the real behavior of real floating-
point arithmetics.

            regards, tom lane

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

Предыдущее
От: "Rainer Mager"
Дата:
Сообщение: RE: pg_dump doesn't handle CREATE FUNCTIONs well
Следующее
От: Tom Lane
Дата:
Сообщение: Re: insert of date is wrong