Re: How to raise error from PostgreSql SQL statement if some condition is met

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: How to raise error from PostgreSql SQL statement if some condition is met
Дата
Msg-id 50272283.1010205@ringerc.id.au
обсуждение исходный текст
Ответ на How to raise error from PostgreSql SQL statement if some condition is met  ("Andrus" <kobruleht2@hot.ee>)
Список pgsql-general
On 08/12/2012 03:07 AM, Andrus wrote:
I’m looking for a way to raise error from sql select if some condition is met.
Tried code below to got error shown in comment.
How to fix ?

Create a small pl/pgsql function that RAISEs a message, and call that from your EXECUTEd SQL via a CASE ... WHEN .

--
Craig Ringer

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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: How to raise error from PostgreSql SQL statement if some condition is met
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: How to raise error from PostgreSql SQL statement if some condition is met