bug?

From: Laurette Cisneros <laurette(at)nextbus(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: bug?
Date: 2002-12-07 00:32:02
Message-ID: Pine.LNX.4.44.0212061630020.8619-100000@visor.corp.nextbus.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


What is the difference between these two queries? Is this a bug?

select case when current_timestamp < '2002-12-06'::date + 1
then 'yes'
else 'no'
end;

--> returns "yes"

select case when current_timestamp < '2002-12-06'::date + 1::interval
then 'yes'
else 'no'
end;

--> returns "no"

Thanks,

--
Laurette Cisneros
The Database Group
(510) 420-3137
NextBus Information Systems, Inc.
www.nextbus.com
----------------------------------
There's more to life than just SQL.

Responses

  • Re: bug? at 2002-12-07 00:45:10 from Oskar Berggren
  • Re: bug? at 2002-12-09 16:56:21 from Steve Crawford

Browse pgsql-general by date

  From Date Subject
Next Message Oskar Berggren 2002-12-07 00:45:10 Re: bug?
Previous Message Tom Lane 2002-12-06 22:53:36 Re: Another planner bug with subqueries