pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedIs it possible return any value other than 'OPAQUE'
2+ messages / 2 participants
[nested] [flat]
* Is it possible return any value other than 'OPAQUE'
@ 2002-09-13 12:13 shreedhar <shreedhar@lucidindia.net>
2002-09-13 17:08 ` Re: Is it possible return any value other than 'OPAQUE' Sean Chittenden <sean@chittenden.org>
0 siblings, 1 reply; 2+ messages in thread
From: shreedhar @ 2002-09-13 12:13 UTC (permalink / raw)
To: pgsql-admin
Hi All
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';
Sreedhar Bhaskararaju 1,2nd Main Road, KottuGardens, Chennai - 600 085 Ph :
4475111 Email : shreedhar@lucidindia.net
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Is it possible return any value other than 'OPAQUE'
2002-09-13 12:13 Is it possible return any value other than 'OPAQUE' shreedhar <shreedhar@lucidindia.net>
@ 2002-09-13 17:08 ` Sean Chittenden <sean@chittenden.org>
0 siblings, 0 replies; 2+ messages in thread
From: Sean Chittenden @ 2002-09-13 17:08 UTC (permalink / raw)
To: shreedhar <shreedhar@lucidindia.net>; +Cc: 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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2002-09-13 17:08 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-09-13 12:13 Is it possible return any value other than 'OPAQUE' shreedhar <shreedhar@lucidindia.net>
2002-09-13 17:08 ` Sean Chittenden <sean@chittenden.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox