Can functions return NULL value?

From: Andrea Austa <aausta(at)athena(dot)polito(dot)it>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Can functions return NULL value?
Date: 2000-05-08 21:07:15
Message-ID: 20000508230715.D1035@giuditta.trustnoone.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)athena(dot)polito(dot)it
Debian GNU/Linux User
--

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tom Lane 2000-05-08 23:37:21 Re: Can functions return NULL value?
Previous Message Tom Lane 2000-05-08 14:08:58 Re: postgres crash. HELP