Delphi 3 ApplyUpdates
I need to read data that has been posted to a table before ApplyUpdates is called. Using Delphi 3 and Guptas SQLBase database. When the data is posted, the records are not visible in the table until ApplyUpdates is called.
Does anyone know where the cached r开发者_如何学Goecords are stored?
If you mean the database table, that's exactly how ApplyUpdates is supposed to work. Are you using MIDAS or cached updates? In the former case data are stored in the in-memory cache of TClientDataset, and can be accessed on the client side using TClientDataset methods (i.e. reading UpdateStatus, or setting StatusFilter) or accessing directly the Delta property. If you're using BDE cached updates, changes are stored AFAIK in some local temporary tables the BDE creates. You can still use UpdateStatus or UpdateRecordType to check for changes to records. In both situations, you have no way to see changes outside the client until they are applied - until then they exist only in the client local cache.
精彩评论