From: Kris Jurka <books@ejurka.com>
To: Prasanth <dbadmin@nqadmin.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Updatable resultset with join query.
Date: Fri, 8 Apr 2005 18:06:47 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0504081804280.24516@leary.csoft.net> (raw)
In-Reply-To: <42558A87.10805@nqadmin.com>
References: <42558A87.10805@nqadmin.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: books@ejurka.com, dbadmin@nqadmin.com
Subject: Re: Updatable resultset with join query.
In-Reply-To: <Pine.BSO.4.56.0504081804280.24516@leary.csoft.net>
References: <42558A87.10805@nqadmin.com> <Pine.BSO.4.56.0504081804280.24516@leary.csoft.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox