Re: problem with view/function after upgrade to 7.2

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: problem with view/function after upgrade to 7.2
Дата
Msg-id 21427.1013526533@sss.pgh.pa.us
обсуждение исходный текст
Ответ на problem with view/function after upgrade to 7.2  (juerg.rietmann@pup.ch)
Список pgsql-admin
juerg.rietmann@pup.ch writes:
> Except the following function/view is not working. I get an error, saying :
> Missing LOOP at end of SQL expression

> FOR rec IN SELECT z_u_umfang FROM zylinder_umfang WHERE z_u_typ = $1;
>      list := list || text(rec.z_u_umfang) || '','';
> END LOOP;

Should be
    FOR record | row IN select_query LOOP
        statements
    END LOOP;
(copied and pasted from the plpgsql documentation...)

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: stopping "wal"
Следующее
От: Manuel Trujillo
Дата:
Сообщение: Re: stopping "wal"