X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 05995D1B527 for ; Sat, 25 Oct 2003 18:40:23 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 70107-06 for ; Sat, 25 Oct 2003 15:39:53 -0300 (ADT) Received: from hotmail.com (bay1-f132.bay1.hotmail.com [65.54.245.132]) by svr1.postgresql.org (Postfix) with ESMTP id CC62DD1B504 for ; Sat, 25 Oct 2003 15:39:51 -0300 (ADT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 25 Oct 2003 11:39:52 -0700 Received: from 62.49.5.141 by by1fd.bay1.hotmail.msn.com with HTTP; Sat, 25 Oct 2003 18:39:52 GMT X-Originating-IP: [62.49.5.141] X-Originating-Email: [wfm3@hotmail.com] From: "w fm3" To: pgsql-odbc@postgresql.org Subject: Update rule on view with multiple tables fails? Date: Sat, 25 Oct 2003 18:39:52 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 25 Oct 2003 18:39:52.0550 (UTC) FILETIME=[60BC7860:01C39B27] X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/82 X-Sequence-Number: 3395 Hi Could anyone let me know if I have done something wrong with the rule? As when trying to update via ODBC the update fails. - But seems to work with php though? -- Postgresql 7.3.2 odbc up to and incl ver7.03.0201 1 view, joining 2 tables (1 - many in this case- companies and contacts- 'orgref' and 'conref' being the Primary keys) -- View definition looks like: SELECT contacts.conref, contacts.orgref, contacts.lastname, organisations.lob FROM (contacts LEFT JOIN organisations ON ((contacts.orgref = organisations.orgref ))); Rule looks like: UPDATE contacts SET lastname = new.lastname WHERE (old.conref = contacts.conref ); UPDATE organisations SET lob = new.lob WHERE (old.orgref = organisations.orgref ); ); --- in this case trying to make changes to the lastname and lob fields. Many thanks _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail