Re: WIP: RangeTypes

Поиск
Список
Период
Сортировка
Искать
От
Jeff Davis
Тема
Re: WIP: RangeTypes
Дата
Msg-id
1296423187.11513.608.camel@jdavis
Ответ на
Re: WIP: RangeTypes (Thom Brown)
Список
Дерево обсуждения
Re: WIP: RangeTypes Chris Browne <cbbrowne@acm.org>
Re: WIP: RangeTypes Jeff Davis <pgsql@j-davis.com>
[ trying a third time to send this message, apparently there were
infrastructure problems before ]

On Sun, 2011-01-30 at 02:55 +0000, Thom Brown wrote:
> postgres=# select '[18,20]'::numrange @> 19;
> ERROR:  operator does not exist: numrange @> integer
> LINE 1: select '[18,20]'::numrange @> 19;
>                                    ^
> HINT:  No operator matches the given name and argument type(s). You
> might need to add explicit type casts.

It's because it doesn't know the type on the right side, and assumes
it's an int4.
   select '[18,20]'::numrange @> 19.0;

works.

Regards,Jeff Davis




В списке pgsql-hackers по дате отправления
От: Peter Eisentraut
Дата:
От: Jan Urbański
Дата:
FAQ