Re: Error Returned by A Function - Mailing list pgsql-novice

From Tom Lane
Subject Re: Error Returned by A Function
Date
Msg-id 617.1136910819@sss.pgh.pa.us
Whole thread Raw
In response to Error Returned by A Function  ("Lane Van Ingen" <lvaningen@esncc.com>)
List pgsql-novice
"Lane Van Ingen" <lvaningen@esncc.com> writes:
> CREATE TYPE typ_remote_net AS
>    (remote_net varchar);
> ...
> DECLARE
>   returnValue        typ_remote_net;
> ...
>   returnValue := 'none';

Try assigning to returnValue.remote_net, instead.

            regards, tom lane

pgsql-novice by date:

Previous
From: "Lane Van Ingen"
Date:
Subject: Re: Error Returned by A Function
Next
From: Michael Fuhr
Date:
Subject: Re: Error Returned by A Function