A small problem with the new inet and cidr types

From: darcy(at)druid(dot)net (D'Arcy J(dot)M(dot) Cain)
To: pgsql-hackers(at)PostgreSQL(dot)org
Subject: A small problem with the new inet and cidr types
Date: 1998-11-01 18:19:11
Message-ID: m0za25n-0000eRC@druid.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at){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.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 1998-11-01 18:26:10 Re: [HACKERS] HPUX 10.01 build issues and solutions.
Previous Message Tom Ivar Helbekkmo 1998-11-01 18:18:10 Re: [HACKERS] backend crashing on NetBSD 1.3.2/i386