bug?

Поиск
Список
Период
Сортировка
От Laurette Cisneros
Тема bug?
Дата
Msg-id Pine.LNX.4.44.0212061630020.8619-100000@visor.corp.nextbus.com
обсуждение исходный текст
Ответы Re: bug?  (Oskar Berggren <beo@sgs.o.se>)
Re: bug?  (Steve Crawford <scrawford@pinpointresearch.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Another planner bug with subqueries
Следующее
От: Oskar Berggren
Дата:
Сообщение: Re: bug?