Re: Proposed patch for showing originating query on error

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: Proposed patch for showing originating query on error
Дата
Msg-id 42E8EFBD.2060705@opencloud.com
обсуждение исходный текст
Ответ на Proposed patch for showing originating query on error  (Dave Cramer <pg@fastcrypt.com>)
Ответы Re: Proposed patch for showing originating query on error  (Dave Cramer <pg@fastcrypt.com>)
Список pgsql-jdbc
Dave Cramer wrote:
> This just adds an exception to the existing backend exception showing
> the originating query.

I think the basic idea is ok, but..

- this should be on the original exception, not on a chained synthetic
exception
- doing it only in execute() seems incomplete, there are other query
execution paths, perhaps this logic belongs somewhere in the query executor?
- ideally it should be configurable (hook it into whatever came out of
Kris' suggestions about including more info in server-generated
exception, perhaps?)

-O

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

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: Proposed patch for showing originating query on error
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Proposed patch for showing originating query on error