Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 410559FB79A for ; Mon, 19 Mar 2007 17:35:36 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 30389-04 for ; Mon, 19 Mar 2007 17:35:29 -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 356089FB798 for ; Mon, 19 Mar 2007 17:35:32 -0300 (ADT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HTOZY-0008Jx-GQ for pgsql-jdbc@postgresql.org; Mon, 19 Mar 2007 21:35:16 +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 ; Mon, 19 Mar 2007 21:35:16 +0100 Received: from randall by ip70-171-110-249.no.no.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 Mar 2007 21:35:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Randall Smith Subject: Re: query manipulation Date: Mon, 19 Mar 2007 15:35:02 -0500 Lines: 24 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/103 X-Sequence-Number: 16817 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 > Sorry. That's "FOR UPDATE OF column_name", not "FOR UPDATE column_name". Randall