PDA

View Full Version : Using transactions



Jeffb
27th April 2010, 05:52
Hi all.

I just wanted to make sure:

When using a single database default connection:
If I have method A which begins a database transaction and then calls method B
Method B executes query 1 and returns to Method A.
Method A then executes query 2 and then commits.

I'm assuming that both Query 1 and 2 are both part of the same transaction.

Correct?

Lesiok
27th April 2010, 07:25
Yes, You are correct.

Jeffb
27th April 2010, 14:44
Thanks heaps.