Re: Is it possible return any value other than 'OPAQUE'

From: Sean Chittenden <sean(at)chittenden(dot)org>
To: shreedhar <shreedhar(at)lucidindia(dot)net>
Cc: Postgres <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Is it possible return any value other than 'OPAQUE'
Date: 2002-09-13 17:08:45
Message-ID: 20020913170845.GQ7103@perrin.int.nxad.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> Is it possible return any value other than 'OPAQUE', If we can
> return how it can be retreived.
>
> CREATE FUNCTION emp_stamp () RETURNS OPAQUE AS
> BEGIN
>
> END;
> ' LANGUAGE 'plpgsql';

For functions that you need to have return a value, yes:

CREATE FUNCTION uga() RETURNS INT AS
BEGIN
RETURN(5);
END:
' LANGUAGE 'plpgsql';

In 7.3 triggers should return type TRIGGER and not OPAQUE. This will
still work, but will issue a warning. -sc

--
Sean Chittenden

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Michael Zouroudis 2002-09-13 17:37:53 cascading problems
Previous Message Michael Zouroudis 2002-09-13 17:05:39 on delete cascade problems