mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-04-22 12:55:44 +00:00
start transaction in
objectsWithFetchSpecification: editingContext: if none was in place before. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30200 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ce2d3fb811
commit
4b25a97b64
2 changed files with 17 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
2010-04-20 David Wetzel <dave@turbocat.de>
|
||||
* EOAccess/EODatabaseContext.m:
|
||||
start transaction in
|
||||
objectsWithFetchSpecification: editingContext:
|
||||
if none was in place before.
|
||||
|
||||
2010-04-19 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* EOAccess/EOEntity.m: Use '||' instead of '|'.
|
||||
|
|
|
@ -1347,6 +1347,15 @@ userInfo = {
|
|||
|
||||
NSDebugMLLog(@"EODatabaseContext", @"fetchSpecification=%@", fetchSpecification);
|
||||
|
||||
#warning fix this method! -- dw
|
||||
|
||||
if (_flags.beganTransaction == NO)
|
||||
{
|
||||
[_adaptorContext beginTransaction];
|
||||
|
||||
_flags.beganTransaction = YES;
|
||||
}
|
||||
|
||||
if (_delegateRespondsTo.shouldFetchObjects == YES)
|
||||
{
|
||||
array = (id)[_delegate databaseContext: self
|
||||
|
@ -1435,7 +1444,7 @@ userInfo = {
|
|||
BOOL promptsAfterFetchLimit = NO;
|
||||
NSAutoreleasePool *arp = nil;//To avoid too much memory use when fetching a lot of objects
|
||||
int limit = 0;
|
||||
|
||||
|
||||
[channel selectObjectsWithFetchSpecification: fetchSpecification
|
||||
editingContext: context];//OK
|
||||
|
||||
|
@ -1601,8 +1610,7 @@ userInfo = {
|
|||
channelFetchRowWithZoneIMP=
|
||||
[adaptorChannel methodForSelector:@selector(fetchRowWithZone:)];
|
||||
|
||||
if (_flags.beganTransaction == NO
|
||||
&& _updateStrategy == EOUpdateWithPessimisticLocking)
|
||||
if (_flags.beganTransaction == NO && _updateStrategy == EOUpdateWithPessimisticLocking)
|
||||
{
|
||||
[_adaptorContext beginTransaction];
|
||||
|
||||
|
|
Loading…
Reference in a new issue