Re: exception handling in plpgsql

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: exception handling in plpgsql
Дата
Msg-id 41D5B41F.30500@dunslane.net
обсуждение исходный текст
Ответ на exception handling in plpgsql  (Sibtay Abbas <sibtay_abbas@yahoo.com>)
Ответы Re: exception handling in plpgsql
Список pgsql-hackers
PEBKAC.

It has told you what the problem is. Use a handler for an exception that 
actually exists. To see what these are, read 
http://developer.postgresql.org/docs/postgres/plpgsql-errors-and-messages.html

cheers

andrew

Sibtay Abbas wrote:

>hello
>
>I am using the following sytex to handle exceptions in
>plpgsql (I am using postgres 8 rc1)
>
>....some code ........
>
>EXCEPTION
>    WHEN NO_DATA THEN      
>       RAISE NOTICE 'NO DATA';
>    WHEN OTHERS THEN
>        RAISE NOTICE 'An exception occurred';
>        RETURN emp_rec;
>
>and i receive the following error 
>ERROR:  unrecognized exception condition "no_data"
>
>How can i rectify this error?
>
>
>    
>  
>


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

Предыдущее
От: Sibtay Abbas
Дата:
Сообщение: exception handling in plpgsql
Следующее
От: lsunley@mb.sympatico.ca
Дата:
Сообщение: sysv_shmem potential problem