Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id EFF529FB2EA for ; Mon, 19 Mar 2007 17:25:26 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 07035-02 for ; Mon, 19 Mar 2007 17:25:15 -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 A28C09FB1BA for ; Mon, 19 Mar 2007 17:25:17 -0300 (ADT) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1HTOPf-0006XE-TE for pgsql-jdbc@postgresql.org; Mon, 19 Mar 2007 21:25:07 +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:25:03 +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:25:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Randall Smith Subject: query manipulation Date: Mon, 19 Mar 2007 15:19:51 -0500 Lines: 12 Message-ID: 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) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/102 X-Sequence-Number: 16816 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