[ZODB-Dev] Assigning to _p_jar and aborting
Jeremy Hylton
jeremy at zope.com
Mon Mar 1 15:36:01 EST 2004
On Sun, 2004-02-29 at 14:42, Christian Robottom Reis wrote:
> I ran into something interesting a while back which might be worth
> mentioning now that we're dealing with Connection.add()/assignment to
> _p_jar. If you assign to an Object's _p_jar and modify it but never
> commit(), ISTM you'll run into an exception like this if you try to
> abort/sync the transactions:
On the head, I've changed the Connection logic for adding. You should
not assign to _p_jar directly. Instead, you should call add(), which
will assign an oid immediately.
Jeremy
More information about the ZODB-Dev
mailing list