* EOAccess/EODatabaseContext.m ([EODatabaseContext -initializeObject:

row:entity:editingContext:]): set nil instead of EONull

* EOControl/EONull.m: included config.h


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@15370 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Mirko Viviani 2002-12-29 15:13:21 +00:00
parent 66cc30154c
commit c8f5362d9f
3 changed files with 14 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2002-12-29 Mirko Viviani <mirko.viviani@rccr.cremona.it>
* EOAccess/EODatabaseContext.m ([EODatabaseContext -initializeObject:
row:entity:editingContext:]): set nil instead of EONull
* EOControl/EONull.m: included config.h
2002-12-17 Mirko Viviani <mirko.viviani@rccr.cremona.it>
* EOAccess/EOEntity.m ([EOEntityClassDescription

View file

@ -6008,6 +6008,7 @@ Raises an exception is the adaptor is unable to perform the operations.
//really near ok
NSArray *relationships = nil;
NSArray *classPropertyAttributeNames = nil;
EONull *null = [EONull null];
int i, count = 0;
EOFLOGObjectFnStart();
@ -6026,7 +6027,11 @@ Raises an exception is the adaptor is unable to perform the operations.
id value = nil;
EOFLOGObjectLevelArgs(@"EODatabaseContext", @"key=%@", key);
value = [row objectForKey: key];
value = [row objectForKey: key];
if (value == null)
value = nil;
EOFLOGObjectLevelArgs(@"EODatabaseContext", @"value=%@", value);
[object takeStoredValue: value

View file

@ -40,6 +40,7 @@ static char rcsId[] = "$Id$";
#import <Foundation/NSString.h>
#import <EOControl/EOControl.h>
#import <EOControl/EONull.h>
#include "config.h"
@implementation EONull