Re: updatable views and optimistic locking

Поиск
Список
Период
Сортировка
От Hiroshi Inoue
Тема Re: updatable views and optimistic locking
Дата
Msg-id 3DC79AE2.A32F9CC@tpf.co.jp
обсуждение исходный текст
Ответ на updatable views and optimistic locking  ("Tambet Matiisen" <t.matiisen@aprote.ee>)
Список pgsql-odbc
Tambet Matiisen wrote:
>
>  Hi all!
>
> We are making a project management application which makes use of VB6
> bound controls and PostgreSQL updatable views. For several reasons we
> had to choose client side recordsets, which means we have to use
> optimistic locking scheme. Optimistic locking relies on number of
> affected records, returned by query. If affected record count is 0, then
> locking failed.
>
> The problem is, that when you define rules for views, all insert, update
> and delete statements return affected records 0, regardless if actual
> rule statement was successful or not. This of course screws up
> optimistic locking.

[snip]

> And my question is: who should I bother, to have this patch included in
> next PostgreSQL release? I consider it extremely useful, especially if
> you happen to use bound controls and updatable views.

Though my patch isn't applied, another patch to fix
the stupid bug is included in the next release.

regards,
Hiroshi Inoue
    http://w2422.nsk.ne.jp/~inoue/

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

Предыдущее
От: "Samuele"
Дата:
Сообщение: Increase inactivity timeout
Следующее
От: "Hiroshi Inoue"
Дата:
Сообщение: Re: Known bugs in OBDC?