Re: Capturing return value of a function

Поиск
Список
Период
Сортировка
От George Weaver
Тема Re: Capturing return value of a function
Дата
Msg-id 006a01c7c7f0$29fb1df0$6400a8c0@Dell4500
обсуждение исходный текст
Ответ на Capturing return value of a function  ("Jasbinder Singh Bali" <jsbali@gmail.com>)
Список pgsql-general
----- Original Message -----
From: Jasbinder Singh Bali
To: pgsql-general@postgresql.org
Sent: Monday, July 16, 2007 3:55 PM
Subject: [GENERAL] Capturing return value of a function

<snip>

> I was wondering what would the function return if insert fails.

> I want it to return 'success'  upon a successful insert and 'failure' if
> insert fails.

You can find out whether the insert was successful or not using the tools
here:

http://www.postgresql.org/docs/8.2/static/plpgsql-statements.html#PLPGSQL-STATEMENTS-DIAGNOSTICS


<snip>

Regards,
George



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

Предыдущее
От: Jeff Ross
Дата:
Сообщение: Re: psql error while restoring database: unrecognized node type: 655
Следующее
От: Jeff Ross
Дата:
Сообщение: Re: psql error while restoring database: unrecognized node type: 655