Subject | Re: How to detect a record changed between read and update? |
---|---|
Author | constantijnw |
Post date | 2004-06-17T14:36:24Z |
Hi Ivan,
--- In firebird-support@yahoogroups.com, "Ivan Prenosil"
<Ivan.Prenosil@s...> wrote:
right?
--- In firebird-support@yahoogroups.com, "Ivan Prenosil"
<Ivan.Prenosil@s...> wrote:
> There are many different ways.The best will do, thank you.
> The easiest is to use snapshot transaction (which is default).You mean I shouldn't do this? You can't start a transaction in a sp,
> Since snapshot provides consistent view of whole database,
> it can't see changes that happened after its start,
> thus in this transaction you can't update such records.
>
> Ivan
right?
>read and update?
>
>
> ----- Original Message -----
> From: "Constantijn Wolfs cw.s" <cw.s@x...>
> To: <firebird-support@yahoogroups.com>
> Sent: Thursday, June 17, 2004 3:46 PM
> Subject: [firebird-support] How to detect a record changed between
>original
>
> > Hello,
> >
> > I want to raise an exception when a record changed between the
> > read and the update with a sp.when
> >
> > I could do a select on the old values and proceed with the update
> > the record was found. But is there a better way to do this, makingthe
> > change of overwriting other updates as small as possible, withoutlocking?
> >
> > Constantijn