Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 714769FB44F for ; Mon, 19 Mar 2007 17:37:41 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 65811-06 for ; Mon, 19 Mar 2007 17:37:34 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id 1263D9FB4BC for ; Mon, 19 Mar 2007 17:37:33 -0300 (ADT) Received: (qmail 8462 invoked from network); 19 Mar 2007 20:37:31 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.14?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 19 Mar 2007 20:37:31 -0000 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: query manipulation Date: Mon, 19 Mar 2007 16:37:31 -0400 To: Randall Smith X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/104 X-Sequence-Number: 16818 Randall, Yeah, you would have to wrap the jdbc driver with a proxy driver. It's not that hard to write one. Dave On 19-Mar-07, at 4:19 PM, Randall Smith wrote: > I'm trying to find a way to manipulate some poorly written queries > in which I don't have access to the application source. I can't do > it at the Postgresql server, so I'm thinking of attacking it at the > jdbc driver. > > I was thinking of a wrapper that would look at and alter the SQL > before it went to the server. Anyone know of something like this? > Specifically, I'm trying to drop "FOR UPDATE column name" off of > some queries. They were written for Oracle, but Postgresql uses > "FOR UPDATE table name". I'm not a Java programmer, but I won't > let that stop me if it is required. > > Randall > > > ---------------------------(end of > broadcast)--------------------------- > TIP 7: You can help support the PostgreSQL project by donating at > > http://www.postgresql.org/about/donate >