Re: inet increment with int

Поиск
Список
Период
Сортировка
От Andrew - Supernews
Тема Re: inet increment with int
Дата
Msg-id slrndhsl70.1vfu.andrew+nonews@trinity.supernews.net
обсуждение исходный текст
Ответ на inet increment with int  (Patrick Welche <prlw1@newn.cam.ac.uk>)
Ответы Re: inet increment with int  (Patrick Welche <prlw1@newn.cam.ac.uk>)
Список pgsql-hackers
On 2005-09-06, Patrick Welche <prlw1@newn.cam.ac.uk> wrote:
> Now with:
>
> test=# select '192.168.0.0/24'::inet + 1;
> ERROR:  Trying to increment a network (192.168.0.0/24) rather than a host

What possible justification is there for this behaviour?

> test=# select '192.168.0.1/24'::inet + -1;
> ERROR:  Increment returns a network (192.168.0.0/24) rather than a host

While I suspect I know where this idea came from, it is equally boneheaded
since it is making completely unwarranted assumptions about how inet
values are being used.

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services


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

Предыдущее
От: nathan wagner
Дата:
Сообщение: Re: uuid type for postgres
Следующее
От: Tim Allen
Дата:
Сообщение: Re: 4D Geometry