Re: DataContext.clearFlattenedUpdateQueries vs. ContextCommit

From: Craig Miskell (cmiskel..lbatross.co.nz)
Date: Sun Mar 16 2003 - 14:49:28 EST

  • Next message: Holger Hoffstätte: "Re: DataContext.clearFlattenedUpdateQueries vs. ContextCommit"

    On Sun, 2003-03-16 at 23:04, Holger Hoffstätte wrote:
    > Craig Miskell wrote:
    > > (snippety-snip)
    > > Of course, when a commit on a Datacontext fails, things tend to be all
    > > over the place and out of sync (well, my expectation is that something is
    > > seriously wrong, and there's little chance of successfully recovering the
    > > DataContext and it's modifications), so it may be a moot point. However,
    > > in the interests of future debugging (and perhaps some more interesting
    > > ways of cleaning up from a failure?? urgh, could get really messy), I'd
    > > suggest they not be cleared.
    >
    > What about revert(), then? Shouldn't that put the DC back into a defined
    > state? (maybe it does but I couldn't find it calling clearFlattened()).
    Hmmm, it certainly should. If not, then the next commit after the
    revert will still try and add/remove the flattened links that were
    supposedly reverted. That's a bug,

    Craig



    This archive was generated by hypermail 2.0.0 : Sun Mar 16 2003 - 14:51:15 EST