Re: PLPGSQL/EXCEPTION HANDLING

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: PLPGSQL/EXCEPTION HANDLING
Дата
Msg-id c2d9e70e0606122210m7965cc7ctda2e39b5e3738806@mail.gmail.com
обсуждение исходный текст
Ответ на PLPGSQL/EXCEPTION HANDLING  ("renneyt@yahoo.com" <renneyt@yahoo.com>)
Ответы Re: PLPGSQL/EXCEPTION HANDLING  ("renneyt@yahoo.com" <renneyt@yahoo.com>)
Список pgsql-admin
On 6/12/06, renneyt@yahoo.com <renneyt@yahoo.com> wrote:
> In a function implemented in 7.4.8 I had the following error when I call
> the function:
>
> ERROR:  syntax error at or near "EXCEPTION"
>
> Offending line is:
>     EXCEPTION WHEN dup_val_on_index THEN NULL;
>
> When this line is removed, all is well.
>

that's because that construction was added in 8.0, you have to upgrade to use it

--
regards,
Jaime Casanova

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
                                       Richard Cook

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

Предыдущее
От: "renneyt@yahoo.com"
Дата:
Сообщение: PLPGSQL/EXCEPTION HANDLING
Следующее
От: "renneyt@yahoo.com"
Дата:
Сообщение: Re: PLPGSQL/EXCEPTION HANDLING