Commit 111e1b21 authored by Godefroid Chapelle's avatar Godefroid Chapelle

fixes error when committing after savepoint rollback

when objects had been added in readCurrent

still need to come up with a test
parent b1ab05b1
...@@ -762,6 +762,8 @@ class Connection(ExportImport, object): ...@@ -762,6 +762,8 @@ class Connection(ExportImport, object):
self._creating = {} self._creating = {}
for oid in creating: for oid in creating:
if oid in self._readCurrent:
self._readCurrent.pop(oid, None)
o = self._cache.get(oid) o = self._cache.get(oid)
if o is not None: if o is not None:
del self._cache[oid] del self._cache[oid]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment