* EOAccess/EODatabase.m (setUpdateStrategy:): Count the snapshots

to determine if we actually already have fetched them.
	Reported by: Thierry Delhaise <befree_fr@mac.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@28085 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2009-03-16 08:26:00 +00:00
parent 4a7738a050
commit 97bdca0839
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2009-03-16 David Ayers <ayers@fsfe.org>
* EOAccess/EODatabase.m (setUpdateStrategy:): Count the snapshots
to determine if we actually already have fetched them.
Reported by: Thierry Delhaise <befree_fr@mac.com>
2009-03-03 Matt Rice <ratmice@gmail.com>
* DBModeler/ModelerAttributeEditor.m
@ -14,7 +20,6 @@
(-delete:): Revert the selection back to the viewed object, and
activate the new selection.
2009-03-02 Matt Rice <ratmice@gmail.com>
* DBModeler/ModelerAttributeEditor.m (dealloc): Remove observers and

View file

@ -575,7 +575,7 @@ May raise an exception if transaction has began or if you want pessimistic lock
//Can't set pessimistic locking where there's already snapshosts !
if (strategy == EOUpdateWithPessimisticLocking
&& [_database snapshots])
&& [[_database snapshots] count])
[NSException raise: NSInvalidArgumentException
format: @"%@ -- %@ 0x%x: can't set EOUpdateWithPessimisticLocking when receive's EODatabase already has snapshots",
NSStringFromSelector(_cmd),