From: Renato De Giovanni <rdg@viafractal.com.br>
To: pgsql-sql@postgresql.org
Subject: Re: Querying date interval
Date: Mon, 15 Jan 2001 23:30:27 -0200
Message-ID: <3A63A432.613AEC88@viafractal.com.br> (raw)
References: <3A63070C.F2661FED@viafractal.com.br>
<20010115153610.A30879@cistron-office.nl>
> > 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
>
> It works fine for me (7.0.3, Debian GNU/Linux "unstable").
>
> I suspect your problem has to do with the "DATESTYLE" setting you're using;
> does it help if you do "SET DATESTYLE TO 'ISO'" prior to INSERTing your test
> values?
Just reporting, I´ve tried: \set DATESTYLE ´ISO´ before adding values, but the
result is still wrong.
Thanks anyway,
--
Renato
Sao Paulo - SP - Brasil
rdg@viafractal.com.br
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: rdg@viafractal.com.br
Subject: Re: Querying date interval
In-Reply-To: <3A63A432.613AEC88@viafractal.com.br>
References: <3A63070C.F2661FED@viafractal.com.br> <20010115153610.A30879@cistron-office.nl> <3A63A432.613AEC88@viafractal.com.br>
* 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