Re: Using views and MS access via odbc

Поиск
Список
Период
Сортировка
От Hiroshi Inoue
Тема Re: Using views and MS access via odbc
Дата
Msg-id EKEJJICOHDIEMGPNIFIJAEBLHLAA.Inoue@tpf.co.jp
обсуждение исходный текст
Ответ на Re: Using views and MS access via odbc  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
> -----Original Message-----
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
>
> Hiroshi Inoue <Inoue@tpf.co.jp> writes:
> > Your settings probably worked well under 7.1 but
> > doesn't in 7.2 due to the following change in
> > tcop/postgres.c.
>
> AFAIR, there is only a visible change of behavior for
> INSERT/UPDATE/DELETE queries, not for SELECTs.  So I don't think
> this change explains Ron's complaint.

For a view a_view

  UPDATE a_view set ... where xxxxx;
returns UPDATE 0 in any case in 7.2.

The psqlodbc driver understands that no row was updated
and returns the info to the upper application if requested.
MS access( and I) think there's no such case other than
the row was changed or deleted after it was SELECTed.
Note that MS access doesn't issue any SELECT commands
to check the optimistic concurrency of the row. The where
clause of the UPDATE command contains *a_item = old_value*
for all items to check the optimisitic concurrency at the
same time.

regards,
Hiroshi Inoue

В списке pgsql-general по дате отправления:

Предыдущее
От: Jason Earl
Дата:
Сообщение: Re: making a trigger to a system call to a shell script
Следующее
От: Paul M Foster
Дата:
Сообщение: Re: Fwd: Postfix Relay Hub SMTP server: errors from postgresql.org[64.49.215.8]