Re: inet increment with int
От | Patrick Welche |
---|---|
Тема | Re: inet increment with int |
Дата | |
Msg-id | 20050907123559.GC7193@quartz.itdept.newn.cam.ac.uk обсуждение исходный текст |
Ответ на | Re: inet increment with int (Andrew - Supernews <andrew+nonews@supernews.com>) |
Ответы |
Re: inet increment with int
|
Список | pgsql-hackers |
On Wed, Sep 07, 2005 at 02:48:00AM -0000, Andrew - Supernews wrote: > 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. So, back to original version? Comments anyone? Patrick
В списке pgsql-hackers по дате отправления: