Re: translating exception messages of postgresql functions

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: translating exception messages of postgresql functions
Дата
Msg-id 20080514144627.GD5521@alvh.no-ip.org
обсуждение исходный текст
Ответ на translating exception messages of postgresql functions  (Julius Tuskenis <julius@nsoft.lt>)
Ответы Re: translating exception messages of postgresql functions  (Julius Tuskenis <julius@nsoft.lt>)
Список pgsql-admin
Julius Tuskenis wrote:
> Hello,
>
> I'd like to ask how is translation of raised exceptions done in
> postgresql applications?

You want it translated or not translated?

> In Sybase ASA you can specify the error
> number when raising it, but in postgresql theres just exception message.
> As I've read - postgresql always generates P0001 SQLSTATE code for
> raised exceptions. Have enyone tried to distinguish one exception from
> the other in the application?

In Postgres 8.4 you will be able to specify error codes to raised
exceptions in PL/pgSQL.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: Julius Tuskenis
Дата:
Сообщение: translating exception messages of postgresql functions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: translating exception messages of postgresql functions