Search Postgresql Archives

Re: Why overlaps is not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



What you meant to test is:

 select (date '20060101'::timestamp,
    coalesce(NULL, 'infinity'::timestamp))
 overlaps
 (date '20060102'::timestamp,
    coalesce(NULL, 'infinity'::timestamp))

Which returns true.

Alban,

If first period end and second period start dates are the same, I need that in this case expression returns true.
Is it possible to implement this using OVERLAPS operator ?

Andrus.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux