Re: Delete after insert?

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Dec 15 2004 - 09:22:20 EST

  • Next message: Andrus Adamchik: "Re: Cross-platform SQL scripts"

    Michael,

    I am not aware of this problem. If you can reproduce this consistently,
    could you possibly create a test case and submit a bug report?

    Andrus

    > Does anyone know of any issues (Cayenne 1.1) with deleting a row
    > immediately after inserting it?
    >
    > In a nutshell, if I do:
    >
    > Insert, sets (relationships only), commit, reset (a method which
    > refetches the detail page data), delete (same object just inserted),
    > commit, it dies while trying to figure out the update clause on
    > something I didn't change.
    >
    > However, this sequence seems to work:
    >
    > Insert, sets (relationships only), commit, reset, reset (again), delete
    > (same object just inserted), commit, it works. It's just slower because
    > the reset does a fetch, so it is doubly-fetched.
    >
    > Thanks,
    >
    > /dev/mrg



    This archive was generated by hypermail 2.0.0 : Wed Dec 15 2004 - 09:22:23 EST