Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id AA3A49F9EED for ; Mon, 11 Dec 2006 20:33:39 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 13777-06 for ; Mon, 11 Dec 2006 20:33:35 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sd.tpf.co.jp (smtp.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 98D9B9F9F49 for ; Mon, 11 Dec 2006 20:33:34 -0400 (AST) Received: (qmail 15364 invoked from network); 12 Dec 2006 09:33:32 +0900 Received: from unknown (HELO ?100.0.32.170?) (100.0.32.170) by sd2.tpf-fw-c.co.jp with SMTP; 12 Dec 2006 09:33:32 +0900 Message-ID: <457DF8DD.6010908@tpf.co.jp> Date: Tue, 12 Dec 2006 09:33:33 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: Richard Broersma Jr CC: pgsql-odbc@postgresql.org Subject: Re: Update-able View linked to Access References: <947953.40775.qm@web31804.mail.mud.yahoo.com> In-Reply-To: <947953.40775.qm@web31804.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/32 X-Sequence-Number: 8479 Richard Broersma Jr wrote: > I created an updateable view using a two part rule and linked it as a table to MS Access. I am > getting the error below when ever I try to update the name field. I tried manually updating the > view from an access update query using only "ID" and it worked perfectly. When I linked the view > as a table I defined id as the primary key, so why is the query sent by the ODBC driver using the > other fields as well when "ID" should be all that it needs?. MS Access adds the "name" and "tiesize" fields to the where clause to check if the target row was updated by other users while editing the MS Access form etc. > I could add these additional fields to the rules update where conditions, Maybe it wouldn't work unfortunately. > but if it works should > it even be necessary? This error seems to be caused by an essential flaw of the rule system. Could you try the following ? Add the CTID field of the target table of the last update rule to the definition of the view. In your case, try to add husband.ctid to the definition of vhusband. regards, Hiroshi Inoue