Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id E48B59FB340 for ; Wed, 10 Oct 2007 10:48:43 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 68985-01 for ; Wed, 10 Oct 2007 10:48:32 -0300 (ADT) X-Greylist: delayed 00:16:12.412121 by SQLgrey-1.7.5 Received: from router.kharkov.zoral.com.ua (unknown [217.175.86.194]) by postgresql.org (Postfix) with ESMTP id 0F1519F959C for ; Wed, 10 Oct 2007 10:48:31 -0300 (ADT) Received: from skuns.kiev.zoral.com.ua ([10.9.0.5]) by router.kharkov.zoral.com.ua (8.13.8/8.13.8) with ESMTP id l9ADWDl6008643 for ; Wed, 10 Oct 2007 16:32:14 +0300 (EEST) (envelope-from tivvpgsqljdbc@gtech-ua.com) Received: from [10.1.1.57] (tivv.kiev.zoral.com.ua [10.1.1.57]) (authenticated bits=0) by skuns.kiev.zoral.com.ua (8.14.1/8.14.1) with ESMTP id l9ADWAuZ044438 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 10 Oct 2007 16:32:10 +0300 (EEST) (envelope-from tivvpgsqljdbc@gtech-ua.com) Message-ID: <470CD623.4050109@gtech-ua.com> Date: Wed, 10 Oct 2007 16:39:47 +0300 From: tivvpgsqljdbc@gtech-ua.com User-Agent: Thunderbird 2.0.0.6 (X11/20070801) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Update ResultSet References: <470CE177.90AD.0080.0@klinik.uni-regensburg.de> <470CCB67.80106@enterprisedb.com> <470CE8C9.90AD.0080.0@klinik.uni-regensburg.de> In-Reply-To: <470CE8C9.90AD.0080.0@klinik.uni-regensburg.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.556 tagged_above=0 required=5 tests=BAYES_20=-0.74, FROM_LOCAL_NOVOWEL=3.196, RDNS_NONE=0.1 X-Spam-Level: ** X-Archive-Number: 200710/74 X-Sequence-Number: 17646 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" 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." >>