CancelUpdates => Rollback?

nicofari

Member²
Hello,

Does CancelUpdates (TOracleDataset in cached updates) imply a Rollback?
If so, is it possible to clear the local cache
WITHOUT doing a rollback?
Thanks very much in advance
Bye
Nicola
 
Looking at the source code of TOracleDataset.CancelUpdates I see
that maybe I can achieve what I need
1. closing the dataset
2. calling CancelUpdates
This way I have clear the ChangeLog WITHOUT rollback am I right?

BTW I would need/like a RollbackToSavePoint(MySavePoint)
instead of a simple Rollback.
What do you think about it?
 
Closing the dataset might indeed do the trick.

The savepoint option might be a problem, because in general it is unknown if the transaction is committed or rolled back between the edit operation of the first record and the call to CancelUpdates.

We could add an oprion for an optional rollbackl though for CancelUpdates though, so you could explicitly rollback to your savepoint.
 
Back
Top