plperl function to return nulls - Mailing list pgsql-general

From Brent Wood
Subject plperl function to return nulls
Date
Msg-id 20050919102610.L17472@storm-user.niwa.co.nz
Whole thread Raw
In response to Re: Query Cost  ("Jim C. Nasby" <jnasby@pervasive.com>)
Responses Re: plperl function to return nulls
List pgsql-general

I can't find a reference in the docs for this...

I have a plperl function returning an int. The int is returned as the
result of a system call.

It is set to return a null if one of the inputs is null, but I can't see
how to return a null if the result is indeterminate. The function
currently returns a 0 instead.

How do I stick an if in the function to return a null where appropriate?


Thanks,

  Brent Wood

pgsql-general by date:

Previous
From: Sean Davis
Date:
Subject: Re: help me pls
Next
From: Michael Fuhr
Date:
Subject: Re: How to modify a tuple returned by SPI_copytuple?