not need anymore dataset ApplyUpdates method ??

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
alpayd
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 17.12.2006, 05:28

not need anymore dataset ApplyUpdates method ??

Post by alpayd »

We need ApplyUpdates after Post for commit data ( ZConnection AutoCommit properties is true and dataset in insert or edit state ) in older versions. Now not need it. Becouse data commited after post . this is a bug or normal behavior ?
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

If Autocommit is true this means you want to commit after each statement. If not you should set it to false.
The moment you post depends on the CachedUpdates property. When true you have to 'ApplyUpdates' manually. When false the data is posted (and committed with autocommit) immediately.
At least, this is what should happen. If it's not like this it's a bug.

Mark
bangfauzan
Senior Boarder
Senior Boarder
Posts: 50
Joined: 31.08.2006, 10:41
Contact:

Post by bangfauzan »

Mark is right, autocommit is intended to immediately commit after each statement, regarding ExecSQL or Executed (TSQLProcessor). So it's not a bug.
If we are talking about inserting, editing or deleting data in dataset, ApplyUpdates is required only if CachedUpdates is True, regardless AutoCommit is True or False.
Post Reply