Re: Message / Error Handler

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Message / Error Handler
Дата
Msg-id Pine.BSO.4.64.0701161614150.27765@leary2.csoft.net
обсуждение исходный текст
Ответ на Message / Error Handler  ("Votilla, Mike # Pittsburgh" <Mike.Votilla@per-se.com>)
Список pgsql-jdbc

On Tue, 16 Jan 2007, Votilla, Mike # Pittsburgh wrote:

> Is there a way to register a message / error handler within my java code
> that will capture any messages issued by a RAISE (debug, log, info etc)
> command from within a PL/pgSQL user defined function?
>

There is no specific callback provided, but RAISE output is available via
Statement.getWarnings().  You also need to ensure that
the level you RAISE at is at least that of client_min_messages to ensure
that the server actually sends it to the JDBC driver.

Kris Jurka

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

Предыдущее
От: "Votilla, Mike # Pittsburgh"
Дата:
Сообщение: Message / Error Handler
Следующее
От: Csaba Nagy
Дата:
Сообщение: Strange error using postgres 8.2 + JDBC 8.2 driver