Re: Proposed patch for showing originating query on error

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Dave Cramer <pg(at)fastcrypt(dot)com>
Cc: List <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Proposed patch for showing originating query on error
Date: 2005-07-28 14:46:21
Message-ID: 42E8EFBD.2060705@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2005-07-28 14:55:12 Re: Proposed patch for showing originating query on error
Previous Message Dave Cramer 2005-07-28 14:32:45 Re: Proposed patch for showing originating query on error