Re: plpgsql out parameter with select into

Поиск
Список
Период
Сортировка
От Imre Horvath
Тема Re: plpgsql out parameter with select into
Дата
Msg-id 1282143617.2734.2.camel@cytherian.blemidon.dyndns.org
обсуждение исходный текст
Ответ на Re: plpgsql out parameter with select into  (Sergey Konoplev <gray.ru@gmail.com>)
Список pgsql-sql
It don't work...       
Only select into status * from... works.       
Imre Horvath

2010. 08. 18, szerda keltezéssel 09.42-kor Sergey Konoplev ezt írta:
> Hi,
> 
> SELECT column_name
> INTO var_name
> FROM ...
> 
> 2010/8/17 Horváth Imre <horvath.imre@blemidon.hu>:
> > Hi!
> >
> > My question is, how can I get the out parameter from a function with
> > SELECT INTO by name?
> > I mean:
> >
> > create function testfunc1(OUT _status integer) returns integer as
> > $BODY$
> >        _status := 0;
> > $BODY$
> > language plpgsql;
> >
> > create function testfunc2() as
> > declare
> >        status integer;
> > $BODY$
> >        select into status * from testfunc1();
> > $BODY$
> > language plpgsql;
> >
> > create function testfunc3() as
> > declare
> >        status integer;
> > $BODY$
> >        select into status _status from testfunc1();
> > $BODY$
> > language plpgsql;
> >
> > testfunc2 works, testfunc3 not.
> >
> > Thanks in advance:
> > Imre Horvath
> >
> >
> > --
> > Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
> > To make changes to your subscription:
> > http://www.postgresql.org/mailpref/pgsql-sql
> >
> 
> 
> 




В списке pgsql-sql по дате отправления:

Предыдущее
От: Horváth Imre
Дата:
Сообщение: Re: plpgsql out parameter with select into
Следующее
От: Sergey Konoplev
Дата:
Сообщение: Re: plpgsql out parameter with select into