Re: Using EXIT and labels to exit blocks of statements

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Using EXIT and labels to exit blocks of statements
Дата
Msg-id 27678.1267577909@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Using EXIT and labels to exit blocks of statements  (Danny Lo <lo.dannyk@gmail.com>)
Список pgsql-novice
Danny Lo <lo.dannyk@gmail.com> writes:
>> Following error. Just want to know correct way to use label. Thanks very
>> much.

You need to put the <<label>> before the DECLARE, not after --- see the
syntax examples here:
http://www.postgresql.org/docs/8.4/static/plpgsql-structure.html

I think it's a bug that it's not throwing an error for the label
placement as you have it.

            regards, tom lane

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

Предыдущее
От: Danny Lo
Дата:
Сообщение: Using EXIT and labels to exit blocks of statements
Следующее
От: Atif Jung
Дата:
Сообщение: Array or not Array?