A small problem with the new inet and cidr types

Поиск
Список
Период
Сортировка
От darcy@druid.net (D'Arcy J.M. Cain)
Тема A small problem with the new inet and cidr types
Дата
Msg-id m0za25n-0000eRC@druid.net
обсуждение исходный текст
Ответы Re: [HACKERS] A small problem with the new inet and cidr types
Список pgsql-hackers
It seems that we have a small problem with the operators and functions
in the inet and cidr types.  If the value in a field is null then the
backend crashes when you try to apply one of the operators or functions
on it.  I have a small patch ready to fix the functions but I'm not
sure what the behaviour should be for the operators.  For the functions
I return an empty string if the argument is null except for masklen()
which returns 0.  Should masklen return 32?

At Marc's request I am holding my patch until 6.4 is frozen.

-- 
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 424 2871     (DoD#0082)    (eNTP)   |  what's for dinner.


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

Предыдущее
От: Tom Ivar Helbekkmo
Дата:
Сообщение: Re: [HACKERS] backend crashing on NetBSD 1.3.2/i386
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] HPUX 10.01 build issues and solutions.