RE : Record unassigned yet

Поиск
Список
Период
Сортировка
От Johann Robette
Тема RE : Record unassigned yet
Дата
Msg-id 006a01c4a7c6$1c6f0ea0$a5010a0a@Johann
обсуждение исходный текст
Ответ на Re: Record unassigned yet  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Thanks for your answer.
In fact, I had a syntax error in my function.
Sorry about that!

-----Message d'origine-----
De : Tom Lane [mailto:tgl@sss.pgh.pa.us]
Envoyé : vendredi 1 octobre 2004 16:47
À : Johann Robette
Cc : pgsql-hackers@postgresql.org
Objet : Re: [HACKERS] Record unassigned yet

"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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Record unassigned yet
Следующее
От: "onion"
Дата:
Сообщение: Vacuum writes on empty system