Re: Record unassigned yet

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Record unassigned yet
Дата
Msg-id 9449.1096642025@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Record unassigned yet  ("Johann Robette" <jrobette@onyme.com>)
Ответы RE : Record unassigned yet  ("Johann Robette" <jrobette@onyme.com>)
Список pgsql-hackers
"Johann Robette" <jrobette@onyme.com> writes:
> I've created a function with a FOR loop.

> DECLARE
> Current RECORD;
> BEGIN
> FOR current IN SELECT * FROM employees LOOP
>         Tmp := current.id;
> END LOOP;
> ...

> When I call the function, I get the error :
>     ERROR:  record " current " is unassigned yet

> Any idea?

What you showed us looks fine, therefore the problem is in something you
didn't show us.
        regards, tom lane


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

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: CREATE INDEX speeds up query on 31 row table ...
Следующее
От: "Johann Robette"
Дата:
Сообщение: RE : Record unassigned yet