Re: Absolute value of intervals - Mailing list pgsql-general

From Sam Mason
Subject Re: Absolute value of intervals
Date
Msg-id 20091030144819.GB5407@samason.me.uk
Whole thread Raw
In response to Re: Absolute value of intervals  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-general
On Fri, Oct 30, 2009 at 11:39:26AM -0300, Alvaro Herrera wrote:
> Sam Mason wrote:
> > + Datum
> > + interval_abs(PG_FUNCTION_ARGS)
> > + {
> > +     Interval   *interval1 = PG_GETARG_INTERVAL_P(0);
> > +     Interval   *interval2 = PG_GETARG_INTERVAL_P(1);
>
> Surely it must receive a single argument?

Indeed it must, trying to write other code at the same time is a good
recipe for getting myself in a mess!

--
  Sam  http://samason.me.uk/

Attachment

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Absolute value of intervals
Next
From: silly8888
Date:
Subject: Re: CREATE TABLE LIKE and SERIAL