RE: [HACKERS] A small problem with the new inet and cidr types - Mailing list pgsql-hackers

From Taral
Subject RE: [HACKERS] A small problem with the new inet and cidr types
Date
Msg-id 000001be068e$fe4351e0$3b291f0a@taral
Whole thread Raw
In response to Re: [HACKERS] A small problem with the new inet and cidr types  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [HACKERS] A small problem with the new inet and cidr types
List pgsql-hackers
> My guess is that maybe this should not be fixed in the individual
> datatypes at all; instead the generic function and operator code should
> be modified so that if any input value is NULL, then NULL is returned as
> the result without ever calling the datatype-specific code.

AFAICT, the function code returns blank when the input is NULL, regardless
of the function definition... this came up before when someone tried to
extend the functions and found that func(NULL) called func, but disregarded
the return value...

Taral



pgsql-hackers by date:

Previous
From: darcy@druid.net (D'Arcy J.M. Cain)
Date:
Subject: Re: [HACKERS] A small problem with the new inet and cidr types
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] A small problem with the new inet and cidr types