Re: Strange interval arithmetic - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Strange interval arithmetic
Date
Msg-id 1678.1133389403@sss.pgh.pa.us
Whole thread Raw
In response to Re: Strange interval arithmetic  (Michael Fuhr <mike@fuhr.org>)
Responses Re: Strange interval arithmetic  (Michael Fuhr <mike@fuhr.org>)
Re: Strange interval arithmetic  (Greg Stark <gsstark@mit.edu>)
Re: Strange interval arithmetic  (Greg Stark <gsstark@mit.edu>)
List pgsql-hackers
Michael Fuhr <mike@fuhr.org> writes:
> I usually check both in my own code but I noticed several places
> where PostgreSQL doesn't, so I kept that style.  I'll check both
> if that's preferred.

I'd say not --- it's more code and it makes a possibly unwarranted
assumption about strtol's behavior.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Strange interval arithmetic
Next
From: Michael Fuhr
Date:
Subject: Re: Strange interval arithmetic