* EOControl/EOEditingContext.m (-_globalIDChanged:): Add key

to the snapshot dict before removing the temporary gid. Assert
        that the temporary gid and the new gid are not equal.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@20679 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Matt Rice 2005-02-09 15:52:38 +00:00
parent 6d1dc39232
commit 42dcaabf41
2 changed files with 10 additions and 3 deletions

View file

@ -1,4 +1,10 @@
2005-02-00 David Ayers <d.ayers@inode.at>
2005-02-08 Matt Rice <ratmice@yahoo.com>
* EOControl/EOEditingContext.m (-_globalIDChanged:): Add key
to the snapshot dict before removing the temporary gid. Assert
that the temporary gid and the new gid are not equal.
2005-02-08 David Ayers <d.ayers@inode.at>
* EOAccess/EOModel.m (-init): Initialize _storedProcedures.
(-storedProcedureNames): Simplify.

View file

@ -801,9 +801,10 @@ _mergeValueForKey(id obj, id value,
if (snapshot)
{
[_snapshotsByGID removeObjectForKey: tempGID];
NSAssert(gid != tempGID, @"gid and temporary gid are the same");
[_snapshotsByGID setObject: snapshot
forKey: gid];
forKey: gid];
[_snapshotsByGID removeObjectForKey: tempGID];
}
else if (object)
{