Jump to content
Sign in to follow this  
Jacek Laskowski

Firedac option MergeDataMode incomprehensibility

Recommended Posts

TFDMergeDataMode.dmDeltaMerge mantains source record UpdateStatus:

Source Record UpdateStatus   Primary key exists ?    Dest Record UpdateStatus
  usInserted                   No                      usInserted
  usInserted                   Yes                     usModified

After MergeDataSet(dmDeltaMerge), UpdatesPending is true, so it is possible to use ApplyUpdates().

 

 

TFDMergeDataMode.dmDataMerge changes UpdateStatus to usUnmodified:

  Source Record UpdateStatus   Primary key exists ?    Dest Record UpdateStatus
  usInserted                   No                      usUnmodified
  usInserted                   Yes                     usUnmodified

After MergeDataSet(dmDataMerge), UpdatesPending is false.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×