Re: syntax error during function call

Поиск
Список
Период
Сортировка
От Raymond O'Donnell
Тема Re: syntax error during function call
Дата
Msg-id 4B6062E5.6090209@iol.ie
обсуждение исходный текст
Ответ на syntax error during function call  ("Aycock, Jeff R." <JEFF.R.AYCOCK@saic.com>)
Ответы Re: syntax error during function call  ("Aycock, Jeff R." <JEFF.R.AYCOCK@saic.com>)
Список pgsql-general
On 27/01/2010 15:40, Aycock, Jeff R. wrote:

> BEGIN
>
>     FOR r IN SELECT * FROM schema_1.snapshot_table
>
>     LOOP
>
>
>
>             DECLARE whoami text := r;


I could be wrong, but I don't think that the DECLARE inside the loop is
correct. I think you have to declare "whoami" with the rest of your
variables in the DECLARE block at the top of the function, and then you
can assign to it inside the loop.

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie

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

Предыдущее
От: "Aycock, Jeff R."
Дата:
Сообщение: syntax error during function call
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Variadic polymorpic functions