From: tivvpgsqljdbc@gtech-ua.com
To: pgsql-jdbc@postgresql.org
Subject: Re: Update ResultSet
Date: Wed, 10 Oct 2007 16:39:47 +0300
Message-ID: <470CD623.4050109@gtech-ua.com> (raw)
In-Reply-To: <470CE8C9.90AD.0080.0@klinik.uni-regensburg.de>
References: <470CE177.90AD.0080.0@klinik.uni-regensburg.de>
<470CCB67.80106@enterprisedb.com>
<470CE8C9.90AD.0080.0@klinik.uni-regensburg.de>
Hi.
I'd create an updatable server-side view and issue select against it.
Not sure if primary key information will be propagated, but you can try.
Christian Rengstl wrote:
> And I suppose there is no reasonable workaround, is there?
>
>
>
>>>> On Wed, Oct 10, 2007 at 2:53 PM, in message
>>>>
> <470CCB67.80106@enterprisedb.com>,
> "Heikki Linnakangas" <heikki@enterprisedb.com> wrote:
>
>> Only simple result sets coming from a single table, with no joins,
>>
> are
>
>> updateable. Granted, the error message is misleading. The driver has
>>
> to
>
>> parse the query, to extract the name of the table to update or throw
>>
> an
>
>> error if there's more than one table involved. In this case, it
>>
> doesn't
>
>> understand the INNER JOIN, and therefore you get the misleading
>>
> error
>
>> message instead of this: "ResultSet is not updateable. The query
>>
> that
>
>> generated this result set must select only one table, and must
>>
> select
>
>> all primary keys from that table. See the JDBC 2.1 API
>>
> Specification,
>
>> section 5.6 for more details."
>>
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: tivvpgsqljdbc@gtech-ua.com
Subject: Re: Update ResultSet
In-Reply-To: <470CD623.4050109@gtech-ua.com>
References: <470CE177.90AD.0080.0@klinik.uni-regensburg.de> <470CCB67.80106@enterprisedb.com> <470CE8C9.90AD.0080.0@klinik.uni-regensburg.de> <470CD623.4050109@gtech-ua.com>
* 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