Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group