bug? - Mailing list pgsql-general

From Laurette Cisneros
Subject bug?
Date
Msg-id Pine.LNX.4.44.0212061630020.8619-100000@visor.corp.nextbus.com
Whole thread Raw
Responses Re: bug?
Re: bug?
List 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.


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Another planner bug with subqueries
Next
From: Oskar Berggren
Date:
Subject: Re: bug?