Re: doverlaps() returns null

From: Rodrigo De León <rdeleonp(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: doverlaps() returns null
Date: 2007-05-21 20:42:21
Message-ID: 1179780141.674741.123150@x35g2000prf.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On May 21, 4:49 am, "Andrus" <kobrule(dot)(dot)(dot)(at)hot(dot)ee> wrote:
> I'm using this for emplyment, vacation, illness etc. period calculation.
> OVERLAPS produces invalid result in this case for DATE as discussed in other
> thread.
>
> select doverlaps(date '2007-01-01',date '2007-01-02',date '2007-01-02',date
> '2007-01-04');
>
> returns FALSE
>
> When first period end and second period start dates are the the same,
> doverlaps() must return TRUE.
>
> Andrus.

OR $2 = $3

In response to

Browse pgsql-general by date

  From Date Subject
Next Message PFC 2007-05-21 20:44:48 feature suggestions
Previous Message Magnus Hagander 2007-05-21 19:39:40 Re: [Re] Re: Winsock error 10035 while trying to upgrade from 8.0 to 8.2