Reputation: 8332
I've always considered that there were no isolation within a single transaction.
For example if I have 2 methods M1 and M2, M1 update X in database and M2 select X or a set containing X. If both method belongs to the same transaction and M2 is executed after M1:
Upvotes: 0
Views: 46
Reputation: 7344
In the situation described, M2 will always see M1's changes yes. An isolation level of READ COMMITTED, for example, only applies to other transactions, not the transaction supplying it.
Cheers -
Upvotes: 1