From: John Fabiani <johnf@jfcomputer.com>
To: pgsql-sql@postgresql.org
Subject: Re: Dates and NULL's`
Date: Tue, 10 May 2011 10:51:01 -0700
Message-ID: <201105101051.01369.johnf@jfcomputer.com> (raw)
In-Reply-To: <BANLkTi=DtYLd_AL=BKLDDBrjR15zhG6Keg@mail.gmail.com>
References: <201105100948.41392.johnf@jfcomputer.com>
<201105101024.23612.johnf@jfcomputer.com>
<BANLkTi=DtYLd_AL=BKLDDBrjR15zhG6Keg@mail.gmail.com>
On Tuesday, May 10, 2011 10:30:58 am Richard Broersma wrote:
> On Tue, May 10, 2011 at 10:24 AM, John Fabiani <johnf@jfcomputer.com> wrote:
> >> spi=> SELECT NULL::DATE >= '2011-04-01'::DATE AND NULL::DATE <=
> >> '2011-04-30'::DATE;
> >> ?column?
> >> ----------
> >>
> >> (1 row)
> >
> > It looks like you are saying the NULLS will be returned too
>
> The WHERE clause will only return rows is the arguments all evaluate
> to TRUE. No rows will be returned for rows that cause the WHERE
> clause to evaluate to a NULL value.
That is what I have seen (so far). But I knew I should ask the question
anyway of suffer later.
Johnf
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: johnf@jfcomputer.com
Subject: Re: Dates and NULL's`
In-Reply-To: <201105101051.01369.johnf@jfcomputer.com>
* 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