Re: Update-able View linked to Access

Поиск
Список
Период
Сортировка
От Hiroshi Inoue
Тема Re: Update-able View linked to Access
Дата
Msg-id 457E02D4.7080506@tpf.co.jp
обсуждение исходный текст
Ответ на Re: Update-able View linked to Access  (Richard Broersma Jr <rabroersma@yahoo.com>)
Ответы Re: Update-able View linked to Access
Список 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 по дате отправления:

Предыдущее
От: Richard Broersma Jr
Дата:
Сообщение: Re: Update-able View linked to Access
Следующее
От: Richard Broersma Jr
Дата:
Сообщение: Re: Update-able View linked to Access