X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C258052B94 for ; Thu, 28 Jul 2005 12:15:21 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 81009-02 for ; Thu, 28 Jul 2005 15:15:15 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 7C31D52B96 for ; Thu, 28 Jul 2005 12:15:13 -0300 (ADT) Received: (qmail 21544 invoked from network); 28 Jul 2005 15:15:13 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 28 Jul 2005 15:15:13 -0000 In-Reply-To: <42E8F488.6070704@opencloud.com> References: <50AD47FA-2BB3-40DC-AE2B-29D7B0C0FDF7@fastcrypt.com> <42E8EFBD.2060705@opencloud.com> <42E8F488.6070704@opencloud.com> Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <8DBEB41D-35E7-4936-9D15-8D759C11E175@fastcrypt.com> Cc: List Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Proposed patch for showing originating query on error Date: Thu, 28 Jul 2005 11:15:11 -0400 To: Oliver Jowett X-Mailer: Apple Mail (2.733) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.014 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/401 X-Sequence-Number: 13549 On 28-Jul-05, at 11:06 AM, Oliver Jowett wrote: > Dave Cramer wrote: > > >> There are even more paths there to hook into. Putting it in >> AbstractJdbc2Statement minimizes >> the number of places it would need to be added to. QueryExecutor >> has a >> few Implementations ... >> > > Well, do you have a better suggestion that catches all paths? I'll give it some serious attention later, I hacked it in to your code for someone, just wanted to get it into the discussion. > > >>> - ideally it should be configurable (hook it into whatever came >>> out of >>> Kris' suggestions about including more info in server-generated >>> exception, perhaps?) >>> >> >> Well, lets get it working first before we make it configurable. >> > > sigh :( let's get it right before we commit it at all.. in practise it > seems "we'll fix this later" means "we won't fix it" Agreed. > > -O > >