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

From: Pedro Gimeno <pgsql-004(at)personal(dot)formauri(dot)es>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, rschaaf(at)commoninf(dot)com, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #12885: The result of casting a double to an integer depends on the database version
Date: 2015-03-25 10:32:27
Message-ID: 55128EBB.4030008@personal.formauri.es
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Here's a version without copysign.

Attachment Content-Type Size
nearest_or_even_d.c text/x-csrc 1.9 KB

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Pedro Gimeno 2015-03-25 11:18:09 Re: BUG #12885: The result of casting a double to an integer depends on the database version
Previous Message Sékine Coulibaly 2015-03-25 09:20:22 "no-slave yet" early CREATE TABLE transaction gets blocked when synchronous replication