Re: Absolute value of intervals

From: Sam Mason <sam(at)samason(dot)me(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Absolute value of intervals
Date: 2009-10-30 14:48:20
Message-ID: 20091030144819.GB5407@samason.me.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
interval_abs.patch text/x-diff 781 bytes

In response to

Browse pgsql-general by date

  From Date Subject
Next Message silly8888 2009-10-30 17:03:39 Re: CREATE TABLE LIKE and SERIAL
Previous Message Alvaro Herrera 2009-10-30 14:39:26 Re: Absolute value of intervals