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

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: BUG #12885: The result of casting a double to an integer depends on the database version
Дата
Msg-id CAB7nPqQ=as+tSE6kA36RLpbueb__Zj_=L+wWonKMH5-nczj3yg@mail.gmail.com
обсуждение исходный текст
Ответ на BUG #12885: The result of casting a double to an integer depends on the database version  (rschaaf@commoninf.com)
Ответы Re: Re: BUG #12885: The result of casting a double to an integer depends on the database version  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On Wed, Mar 25, 2015 at 8:18 PM, Pedro Gimeno
<pgsql-004@personal.formauri.es> wrote:
> 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.

Cool, thanks. Applied to the code tree of Postgres, it gives the patch attached.
--
Michael

Вложения

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

Предыдущее
От: Sékine Coulibaly
Дата:
Сообщение: "no-slave yet" early CREATE TABLE transaction gets blocked when synchronous replication
Следующее
От: Kevin Grittner
Дата:
Сообщение: Re: "no-slave yet" early CREATE TABLE transaction gets blocked when synchronous replication