Re: transaction isolation
Date: Tue, 30 Oct 2001 18:26:51 GMT
Message-ID: <LhCD7.59$ec1.6612_at_petpeeve.ziplink.net>
> I think I see incorrect behaviour in the processing of transactions by a
> reasonably well-known relational database product, especifically in
showing the
> contents of one transaction within another transaction environment. I 'd
like to
> know whether you agree that this behaviour is not what it should be, that
is:
> not ANSI-compatible. If you think it is ANSI-compatible, could you please
> explain where I have gone astray?
[snip]
> Back to session 2:
>
> Query the table again:
>
> select * from test;
>
> This returns:
> ID DESCRIPTION
> -- -----------
> (this is not correct, as the rows were committed in session 1!)
>
> Now commit the work in session 2:
>
> commit work;
I disagree with you, and I agree with the way the (unnamed) product works.
If the two rows were invisible to session 2 at the start of the transaction,
then they must remain invisible to
session 2 throughout the transaction. If new rows could suddenly "appear"
in the middle of the session 2 transaction,
then transaction 2 would not be seeing a consistent view of the database.
-- Regards, David Cressey www.dcressey.comReceived on Tue Oct 30 2001 - 19:26:51 CET