Re: Problems with RAISE EXCEPTION

Поиск
Список
Период
Сортировка
От brichard@cafod.org.uk (Bruce Richardson)
Тема Re: Problems with RAISE EXCEPTION
Дата
Msg-id 20010227123031.B13983@usb.cafod.org.uk
обсуждение исходный текст
Ответ на Problems with RAISE EXCEPTION  (Tulio Oliveira <mestredosmagos@marilia.com>)
Список pgsql-general
On Tue, Feb 27, 2001 at 08:40:27AM -0300, Tulio Oliveira wrote:
> But the RAISE EXCEPTION don't accept variables, only a CONTANT STRING.
>
> Nor strigs concatenation are supported ........

You can add variables to the string, like this:

RAISE EXCEPTION "Record % has same name as record %", new.name,
other.name;

--
Bruce

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

Предыдущее
От: martin.chantler@convergys.com
Дата:
Сообщение: Re: Migrate from MS SQL 6.5 to postgres??
Следующее
От: "Richard Huxton"
Дата:
Сообщение: Re: Last x records