Re: Update-able View linked to Access - Mailing list pgsql-odbc

From Hiroshi Inoue
Subject Re: Update-able View linked to Access
Date
Msg-id 457E02D4.7080506@tpf.co.jp
Whole thread Raw
In response to Re: Update-able View linked to Access  (Richard Broersma Jr <rabroersma@yahoo.com>)
Responses Re: Update-able View linked to Access  (Richard Broersma Jr <rabroersma@yahoo.com>)
List pgsql-odbc
Richard Broersma Jr wrote:
>> 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.
>
> I am still getting similar errors, only now both columns are locked.
> Here is my new view definition:
> --------------------------------
> CREATE OR REPLACE VIEW public.vhusband (id, personctid, husbandctid, name, tiesize)  AS
> SELECT
>         A.id, A.ctid, B.ctid, A.name, B.tiesize
> FROM
>         public.person as A
> INNER JOIN
>         public.husband as B
> ON
>         A.id = B.ID
> ;

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.

regards,
Hiroshi Inoue

pgsql-odbc by date:

Previous
From: Richard Broersma Jr
Date:
Subject: Re: Update-able View linked to Access
Next
From: Richard Broersma Jr
Date:
Subject: Re: Update-able View linked to Access