From: Tom Lane <tgl@sss.pgh.pa.us>
To: Renato De Giovanni <rdg@viafractal.com.br>
Cc: pgsql-sql@postgresql.org
Subject: Re: Querying date interval
Date: Mon, 15 Jan 2001 10:14:54 -0500
Message-ID: <25500.979571694@sss.pgh.pa.us> (raw)
In-Reply-To: <3A63070C.F2661FED@viafractal.com.br>
References: <3A63070C.F2661FED@viafractal.com.br>
Renato De Giovanni <rdg@viafractal.com.br> writes:
> create table testdate (field1 date);
> insert into testdate values ('2000-09-30');
> insert into testdate values ('2000-10-20');
> insert into testdate values ('2000-11-25');
> select * from testdate where field1 between '2000-10-01' and
> '2000-11-30' ;
> field1
> ------------
> 2000-09-30 <---- why is it here??
> 2000-10-20
> 2000-11-25
> (3 rows)
Curious. I can't reproduce this error in EST5EDT timezone, using
either 7.0.2 or current.
What PG version are you using, and with what timezone setting?
Is 2000-09-30 or 2000-10-01 a daylight-savings transition date in your
timezone?
regards, tom lane
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-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, rdg@viafractal.com.br
Subject: Re: Querying date interval
In-Reply-To: <25500.979571694@sss.pgh.pa.us>
References: <3A63070C.F2661FED@viafractal.com.br> <25500.979571694@sss.pgh.pa.us>
* 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