Subject | Re: TIBOQuery & CachedUpdates - Insert not working |
---|---|
Author | Eyal |
Post date | 2005-03-21T11:36:05Z |
> Because you haven't inserted a record in the dataset, but in aOops!
> cache buffer that is isolated from the dataset's transaction!
> Your problem here is that your code separates the cache from theI just tried exactly that and still nothing gets to the DB. After the
> transaction in which the task occurs. The sequence has to be
>
> Transaction.StartTransaction
> Query.Open (or Refresh)
> ...
> Query.Insert
> (insert rows into the cache)
> ... (mess around inside the cache if desired)
> Query.ApplyUpdates (posts all new rows)
> ...
> Transaction.Commit
> Query.CommitUpdates
Insert, UpdatesPending still returns FALSE.
Is there other possible cause?
Thanks as usual,
Eyal.