Why select 1 where current_date = 'infinity'; doesn't work?

Поиск
Список
Период
Сортировка
От Francisco Figueiredo Jr.
Тема Why select 1 where current_date = 'infinity'; doesn't work?
Дата
Msg-id 438d02260810140758n5bef98cft826ef8ffa9f39b1b@mail.gmail.com
обсуждение исходный текст
Ответы Re: Why select 1 where current_date = 'infinity'; doesn't work?  ("Francisco Figueiredo Jr." <francisco@npgsql.org>)
Список pgsql-general
It gives me the following error:

ERROR:  invalid input syntax for type date: "infinity"

I thought I could use it anywhere in my sql.

I have to add a cast to timestamp in order for this to work. I thought
I wouldn't need to use a case.

Am I missing something?

Thanks in advance.


--
Regards,

Francisco Figueiredo Jr.
Npgsql Lead Developer
http://fxjr.blogspot.com
http://www.npgsql.org

В списке pgsql-general по дате отправления:

Предыдущее
От: Ivan Sergio Borgonovo
Дата:
Сообщение: Re: Drupal and PostgreSQL - performance issues?
Следующее
От: "Merlin Moncure"
Дата:
Сообщение: Re: PL/pgSQL stored procedure returning multiple result sets (SELECTs)?