Re: BUG #12885: The result of casting a double to an integer depends on the database version

Поиск
Список
Период
Сортировка
От Pedro Gimeno
Тема Re: BUG #12885: The result of casting a double to an integer depends on the database version
Дата
Msg-id 55129971.2070208@personal.formauri.es
обсуждение исходный текст
Ответ на Re: BUG #12885: The result of casting a double to an integer depends on the database version  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-bugs
Michael Paquier wrote, On 2015-03-25 04:26:
> copysign is not that portable, at least it is not in the MSVC world.
> So as a patch you would get something like the attached with what you
> wrote.

The only point of using copysign there was to deal with a negative zero
corner case. The attached removes copysign from the test program too,
relying instead on sprintf outputting the sign of minus zero when available.


Вложения

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

Предыдущее
От: Pedro Gimeno
Дата:
Сообщение: Re: BUG #12885: The result of casting a double to an integer depends on the database version
Следующее
От: Jaimin Pan
Дата:
Сообщение: [Report Bug With Patch] Rel Cache Bug