Unable to convert date to tm

Поиск
Список
Период
Сортировка
От Ramiro Arenas R
Тема Unable to convert date to tm
Дата
Msg-id 1076445948.5346.12.camel@maxims.coordinadora.com
обсуждение исходный текст
Ответы Re: Unable to convert date to tm  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
Hi

I have a column x in a table of type date and i have an index on x
runing the query "SELECT * FROM table WHERE x >= '2004-01-01"
i get this:
Unable to convert date to tm

where using a cast like this: "SELECT  * FROM table WHERE x  
>='2004-01-01::timestamp" result is ok but it doesn't use index.

Thanks in advance.







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

Предыдущее
От: "Greg Patnude"
Дата:
Сообщение: Re: Unique Constraint with foreign Key
Следующее
От: stermic@gw.co.jackson.mo.us (Michael Sterling)
Дата:
Сообщение: max timestamp