Can functions return NULL value? - Mailing list pgsql-interfaces

From Andrea Austa
Subject Can functions return NULL value?
Date
Msg-id 20000508230715.D1035@giuditta.trustnoone.org
Whole thread Raw
Responses Re: Can functions return NULL value?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-interfaces
Can a function, written in C, return a NULL value?
I would like write code like this:
text * getnull (text * t){    return NULL;}

but it doesn't work, the backend terminates abnormally.

Thanks a lot


--                 Andrea Austa - aausta@athena.polito.it                        Debian GNU/Linux User
--


pgsql-interfaces by date:

Previous
From: Tom Lane
Date:
Subject: Re: postgres crash. HELP
Next
From: Tom Lane
Date:
Subject: Re: Can functions return NULL value?