Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 434499FA1A1 for ; Mon, 11 Dec 2006 22:48:53 -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 56934-01-3 for ; Mon, 11 Dec 2006 22:48:43 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sd.tpf.co.jp (ftp.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id CE0269F9357 for ; Mon, 11 Dec 2006 22:48:42 -0400 (AST) Received: (qmail 27997 invoked from network); 12 Dec 2006 11:48:40 +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 11:48:40 +0900 Message-ID: <457E1889.2060305@tpf.co.jp> Date: Tue, 12 Dec 2006 11:48:41 +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: <860305.95549.qm@web31810.mail.mud.yahoo.com> In-Reply-To: <860305.95549.qm@web31810.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/36 X-Sequence-Number: 8483 Richard Broersma Jr wrote: >> Please change the field name of B.ctid from hasbandctid to ctid. >> The name should be "ctid" for the driver to detect the field is for versioning. >> A.ctid isn't needed. > > It works now! However, I have a question. If I have a view with more than two joined tables will > i need to reference the ctid from each table after the first update statement? The ctid of the target table of the rule's last statement should be referenced. For example, in your case the command UPDATE "public"."vhusband" SET "name"=E'hello44',"tiesize"=52 WHERE "id" = 10 AND "ctid" = E'(0,47)' is issued by MS Access. The where condition "id" = 10 AND "ctid" = E'(0,47)' is added to each statment in the rule when the command is executed. So it's very siginificant that the contents of "id" and "ctid" are not changed until the last statement is called. Please note that the ctid field is modified autmatically when the table is updated. regards, Hiroshi Inoue