* EOAccess/EODatabaseContext.m

(prepareForSaveWithCoordinator:editingContext:): Correct logic
	for primary key generation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30219 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2010-04-22 09:38:07 +00:00
parent 1ac1fc7f7d
commit 7d7f63a828
2 changed files with 4 additions and 1 deletions

View file

@ -2,6 +2,9 @@
* DBModeler/ConsistencyChecker.m (attributeDetailsCheckForModel:)
Fix iterator variable.
* EOAccess/EODatabaseContext.m
(prepareForSaveWithCoordinator:editingContext:): Correct logic
for primary key generation.
2010-04-21 David Ayers <ayers@fsfe.org>

View file

@ -2396,7 +2396,7 @@ forDatabaseOperation:(EODatabaseOperation *)op
i--;
};
}
else if (round>0)
else if (round == 0)
{
if (!noPKObjects)
noPKObjects=(NSMutableArray*)[NSMutableArray array];