Re: Strange interval arithmetic - Mailing list pgsql-hackers

From Michael Fuhr
Subject Re: Strange interval arithmetic
Date
Msg-id 20051130225742.GA27631@winnie.fuhr.org
Whole thread Raw
In response to Re: Strange interval arithmetic  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Strange interval arithmetic  (Michael Fuhr <mike@fuhr.org>)
List pgsql-hackers
On Wed, Nov 30, 2005 at 05:49:53PM -0500, Tom Lane wrote:
> The SUS saith
> http://www.opengroup.org/onlinepubs/007908799/xsh/strtol.html
> 
>     The strtol() function will not change the setting of errno if
>     successful.
> 
> Perhaps more to the point, we've been doing it that way (errno test
> only) for many years without complaints.  Adding a test on the return
> value is venturing into less charted waters.

Good, I'll stick with just the ERANGE check then.

-- 
Michael Fuhr


pgsql-hackers by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: Strange interval arithmetic
Next
From: Andrew Dunstan
Date:
Subject: Re: Strange interval arithmetic