Re: MODIFIED set prematurely

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Jan 25 2006 - 12:31:49 EST

  • Next message: Cris Daniluk: "Re: MODIFIED set prematurely"

    On Jan 25, 2006, at 12:25 PM, Cris Daniluk wrote:

    > On 1/25/06, Andrus Adamchik <andru..bjectstyle.org> wrote:
    >> So in your tests does a read-only object with "phantom" modification
    >> blow on commit with an exception? If so, we need to open a bug report
    >> and handle it in the commit code.
    >
    > Correct. What would the correct behavior be? To validate that the
    > snapshots have not changed?
    >
    > Cris

    I would think so. Cayenne correctly detects "phantom" modifications
    of non-read-only objects and doesn't issue bogus queries. So the
    right algorithm is in place already. It maybe just a matter of
    changing the order of read-only checks.

    Andrus



    This archive was generated by hypermail 2.0.0 : Wed Jan 25 2006 - 12:31:51 EST