Re: exception handling in plpgsql

Поиск
Список
Период
Сортировка
Искать
От
Michael Fuhr
Тема
Re: exception handling in plpgsql
Дата
в 19:42:28
Msg-id
20060525224215.GA73000@winnie.fuhr.org
Ответ на
Список
Дерево обсуждения
exception handling in plpgsql Roberto Assis <rezende_assis@yahoo.com.br>
Re: exception handling in plpgsql Michael Fuhr <mike@fuhr.org>
On Thu, May 25, 2006 at 10:25:37PM +0000, Roberto Assis wrote:
> Hello folks, supose I already have an user called bob, with this
> function below I was expecting to see something like this:
>   -------------------------------------------------------------------------------
>   SELECT my_create_user('bob','bobpass');
>   ERROR: :
>   -------------------------------------------------------------------------------
>    If I try to make another user bob.
>   But instead the function doesn't compile.
>   Reading the manual it seemed that this should work.

What's the exact error you get?  What version of PostgreSQL are you
using?  SQLSTATE and SQLERRM are available only since 8.1.

-- 
Michael Fuhr
В списке pgsql-novice по дате отправления
От: Roberto Assis
Дата:
Сообщение: exception handling in plpgsql
От: Bruno Wolff III
Дата:
Сообщение: Re: SQL Question - S/B Good...
FAQ