From: Incorrect result from operator "overlaps" <wolfmoon@o2.pl>
To: pgsql-bugs@postgresql.org
Subject: BUG #6192: Incorrect result from operator "overlaps"
Date: Thu, 1 Sep 2011 08:27:27 GMT
Message-ID: <201109010827.p818RRBg059211@wwwmaster.postgresql.org> (raw)
The following bug has been logged online:
Bug reference: 6192
Logged by: Incorrect result from operator "overlaps"
Email address: wolfmoon@o2.pl
PostgreSQL version: 9.0.4
Operating system: Debian/Sid
Description: Incorrect result from operator "overlaps"
Details:
SELECT ('2011-08-31'::date,'2011-08-31'::date) overlaps
('2011-08-1'::date,'2011-08-31'::date);
Returns false, should return true.
SELECT ('2011-08-31'::date,'2011-08-31'::date) overlaps
('2011-08-1'::date,'2011-09-1'::date);
Returns true, as it should.
SELECT ('2011-08-31'::date,'2011-08-31'::date) overlaps
('2011-08-31'::date,'2011-09-1'::date);
Returns true, as it should.
Tested in versions 8.3.14, 8.4.7 and 9.0.4.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: wolfmoon@o2.pl
Subject: Re: BUG #6192: Incorrect result from operator "overlaps"
In-Reply-To: <201109010827.p818RRBg059211@wwwmaster.postgresql.org>
References: <201109010827.p818RRBg059211@wwwmaster.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox