From: | Jan Wieck <janwieck(at)yahoo(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Jan Wieck <janwieck(at)yahoo(dot)com>, Richard Emberson <emberson(at)phc(dot)net>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: %ROWTYPE as PL/pgsql argument |
Date: | 2002-04-02 19:34:12 |
Message-ID: | 200204021934.g32JYC531262@saturn.janwieck.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Tom Lane wrote:
> Jan Wieck <janwieck(at)yahoo(dot)com> writes:
> > At the time beeing you can't do that with PL/pgSQL. The
> > language can receive rows as parameters, but it cannot build
> > those rows and pass them down to called functions.
>
> Hmm, doesn't it work to do
>
> declare var some-row-type;
>
> select x, y, z into var;
>
> select otherfunc(var);
Yes,
it doesn't work. Actually, giving just a relname as 'some-
row-type' crashes the backend. Will take a look at it
tomorrow.
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
From | Date | Subject | |
---|---|---|---|
Next Message | wsheldah | 2002-04-02 19:56:44 | Re: changeing type of column |
Previous Message | PG Explorer | 2002-04-02 19:23:19 | Re: Creating temporary table |