Re: complicated query (newbie..)

Поиск
Список
Период
Сортировка
От Raymond O'Donnell
Тема Re: complicated query (newbie..)
Дата
Msg-id 49DE2C54.8050304@iol.ie
обсуждение исходный текст
Ответ на Re: complicated query (newbie..)  (Marcin Krol <mrkafk@gmail.com>)
Список pgsql-general
On 09/04/2009 18:03, Marcin Krol wrote:
> - If I quote date values like '2009-04-09' it doesn't work again! I.e.
> result set includes one host id that should have been excluded (bc it
> has reservation whose date doesn't match the condition)
>
> - I have replaced OVERLAPS with explicit date condition bc PG complained:
>
> ERROR:  function pg_catalog.overlaps(date, date, integer, integer) does
> not exist
> HINT:  No function matches the given name and argument types. You may
> need to add explicit type casts.

I'd imagine this is the same problem as in your other post - if you
don't quote the dates, PG thinks each is an integer expression. The
error says it's looking for an OVERLAPS function that takes two dates
and two integers, which of course doesn't exist.

Ray.

------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------

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

Предыдущее
От: Steve Atkins
Дата:
Сообщение: Re: Storing HTML: HTML entities being rendered in that raw form
Следующее
От: Sam Mason
Дата:
Сообщение: Re: complicated query (newbie..)