From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Richard Broersma Jr <rabroersma@yahoo.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Update-able View linked to Access
Date: Tue, 12 Dec 2006 09:33:33 +0900
Message-ID: <457DF8DD.6010908@tpf.co.jp> (raw)
In-Reply-To: <947953.40775.qm@web31804.mail.mud.yahoo.com>
References: <947953.40775.qm@web31804.mail.mud.yahoo.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: inoue@tpf.co.jp, rabroersma@yahoo.com
Subject: Re: Update-able View linked to Access
In-Reply-To: <457DF8DD.6010908@tpf.co.jp>
References: <947953.40775.qm@web31804.mail.mud.yahoo.com> <457DF8DD.6010908@tpf.co.jp>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox