Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id C37009F9F46 for ; Mon, 11 Dec 2006 19:55:45 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 02097-08 for ; Mon, 11 Dec 2006 19:55:33 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from web31804.mail.mud.yahoo.com (web31804.mail.mud.yahoo.com [68.142.207.67]) by postgresql.org (Postfix) with SMTP id 8359D9F9C35 for ; Mon, 11 Dec 2006 19:55:37 -0400 (AST) Received: (qmail 41387 invoked by uid 60001); 11 Dec 2006 23:55:36 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=g6EEdL6mZVs1uk26dRucB/WfJ051/T1cz1MJk3TjBiwtgANc8mElT2BVGZbp03+wPHYNm8mQ3N2P6XxRR1kpSRBr7yBNvsZ/2AKrvC7lrjVMBYN6i0GNJ4CrTJ5fJsOdvhKO1yaXJM7PUsXILPtLbsMrKDBXN7B6ERfSk13DXXc=; X-YMail-OSG: .StNGxUVM1n2j.yCWuzCXZX0Vek.B__BOglUl8UbWonWwW1SjRBPY.j5f3bEQdGvb_VXZkGiPVJ87mAoUfctIcdBiwFFaSwPZFMlPkrWLSy96tXE4vINRmVaRAEtlbMkZ5XJ5uPzJeJedMleOtxXpJFNxzTsM3jz8Y0J8vSqNgrZ.RI6nyKqHx9DzvBO Received: from [12.177.97.50] by web31804.mail.mud.yahoo.com via HTTP; Mon, 11 Dec 2006 15:55:35 PST Date: Mon, 11 Dec 2006 15:55:35 -0800 (PST) From: Richard Broersma Jr Subject: Update-able View linked to Access To: pgsql-odbc@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <947953.40775.qm@web31804.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.532 tagged_above=0 required=5 tests=AWL, BAYES_50, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, DNS_FROM_RFC_WHOIS X-Spam-Level: * X-Archive-Number: 200612/30 X-Sequence-Number: 8477 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?. I could add these additional fields to the rules update where conditions, but if it works should it even be necessary? ERROR Message: BEGIN;UPDATE "public"."vhusband" SET "name"=E'hell2' WHERE "id" = 14 AND "name" = E'hello3' AND "tiesize" = 12 ROLLBACK It seems my rules are working outside the odbc transaction. Update portion of Rule Definition: CREATE OR REPLACE RULE vhusband_update_person AS ON UPDATE TO public.vhusband DO INSTEAD ( UPDATE public.person SET name = NEW.name WHERE id = OLD.id; UPDATE public.husband SET tiesize = NEW.tiesize WHERE id = OLD.id ) ; Thanks for any help. Regards, Richard Broersma Jr.