From: Hiroshi Inoue <Inoue@tpf.co.jp>
To: Tambet Matiisen <t.matiisen@aprote.ee>
Cc: pgsql-odbc@postgresql.org
Subject: Re: updatable views and optimistic locking
Date: Tue, 05 Nov 2002 19:18:10 +0900
Message-ID: <3DC79AE2.A32F9CC@tpf.co.jp> (raw)
References: <81132473206F3A46A72BD6116E1A06AE1B14A2@black.aprote.com>
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/
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, t.matiisen@aprote.ee
Subject: Re: updatable views and optimistic locking
In-Reply-To: <3DC79AE2.A32F9CC@tpf.co.jp>
References: <81132473206F3A46A72BD6116E1A06AE1B14A2@black.aprote.com> <3DC79AE2.A32F9CC@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