Re: Date Question

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Date Question
Дата
Msg-id 200206271537.03939.josh@agliodbs.com
обсуждение исходный текст
Ответ на Re: Date Question  (Sharon Cowling <sharon.cowling@sslnz.com>)
Список pgsql-novice
Sharon,

> taupo-> AND OVERLAPS ('27-06-02', '11-07-02', date_from, date_to)
> taupo-> ORDER BY permit_id ;
> ERROR:  Function 'overlaps(unknown, unknown, date, date)' does not exist
>         Unable to identify a function that satisfies the given argument
types
>         You may need to add explicit typecasts

As the message says, you need to add explicit typecasts:

AND OVERLAPS ('27-06-02'::DATE, '11-07-02'::DATE, date_from, date_to)

--
-Josh Berkus




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

Предыдущее
От: Rory Campbell-Lange
Дата:
Сообщение: simplify case statement with function?
Следующее
От: Rory Campbell-Lange
Дата:
Сообщение: select 2 random rows