Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 202DE9FA667 for ; Wed, 21 Mar 2007 14:30:12 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 28460-01-6 for ; Wed, 21 Mar 2007 14:30:03 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id 4303B9FA159 for ; Wed, 21 Mar 2007 14:30:03 -0300 (ADT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HU4d0-0007dx-7z for pgsql-jdbc@postgresql.org; Wed, 21 Mar 2007 18:29:38 +0100 Received: from ip70-171-110-249.no.no.cox.net ([70.171.110.249]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Mar 2007 18:29:38 +0100 Received: from randall by ip70-171-110-249.no.no.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Mar 2007 18:29:38 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Randall Smith Subject: Re: query manipulation Date: Wed, 21 Mar 2007 12:29:06 -0500 Lines: 30 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ip70-171-110-249.no.no.cox.net User-Agent: Thunderbird 1.5.0.10 (X11/20070306) In-Reply-To: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/111 X-Sequence-Number: 16825 Would this be a good tool to use here or would it create unnecessary work? http://jakarta.apache.org/commons/dbutils/apidocs/org/apache/commons/dbutils/ProxyFactory.html public java.sql.PreparedStatement createPreparedStatement(java.lang.reflect.InvocationHandler handler) Randall 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 >