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 1D31C535DE for ; Sat, 9 Apr 2005 00:06:53 +0100 (BST) 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 68942-08 for ; Fri, 8 Apr 2005 23:06:44 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 24B91535D1 for ; Sat, 9 Apr 2005 00:06:44 +0100 (BST) Received: (qmail 29866 invoked by uid 1112); 8 Apr 2005 23:06:47 -0000 Date: Fri, 8 Apr 2005 18:06:47 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Prasanth Cc: pgsql-jdbc@postgresql.org Subject: Re: Updatable resultset with join query. In-Reply-To: <42558A87.10805@nqadmin.com> Message-ID: References: <42558A87.10805@nqadmin.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.012 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/53 X-Sequence-Number: 12660 On Thu, 7 Apr 2005, Prasanth wrote: > I am trying to get an updatable result set using a join query. > It does not work if I join it using where condition. > (FROM table1, table2 WHERE table1.id1 = table2.id2) > > If I do it using INNER JOIN it works partially. What I mean > is I can update one table but not the other. > It is actually a known bug that it works with the INNER JOIN. There is code to try and determine if the query spans more than one table, but it is very simple and only recognizes plain "," joins. Code was submitted to improve this, but I did not take a good look at it. In any case it probably isn't the direction you want things to go anyway. Kris Jurka