Re: Continue stmt for plpgsql

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: Continue stmt for plpgsql
Дата
Msg-id 42B8C0E4.8060604@samurai.com
обсуждение исходный текст
Ответ на Re: Continue stmt for plpgsql  (Neil Conway <neilc@samurai.com>)
Список pgsql-patches
Neil Conway wrote:
> Attached is a revised patch.

Patch applied -- thanks, Pavel. I ended up using ERRCODE_SYNTAX_ERROR
when a CONTINUE is specified outside a loop. BTW, one minor annoyance is:

<<lbl>>
BEGIN
     LOOP
         CONTINUE lbl;
     END LOOP;
END;

The current implementation will raise an error, as it should, but it
does so at runtime, and claims that "CONTINUE cannot be used outside a
loop". We could fix this by dividing labels into "block labels" and
"loop labels" at compile-time and only accepting a loop label for
CONTINUE, but I haven't implemented this yet.

-Neil

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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: plperl validator function
Следующее
От: Neil Conway
Дата:
Сообщение: Re: Removing Kerberos 4