[OGo-GNUstep-Port] postgresql adapter exception while entering a project

Helge Hess gnustep-port@opengroupware.org
Wed, 6 Jun 2007 10:43:20 +0200


On Jun 6, 2007, at 08:51, Sebastian Reitenbach wrote:
> I had to change the [NSNumber numberWithBool:YES] to [NSNumber
> numberWithInt:1] or numberWithInt:YES to make it work.

Thats wrong. We need to find the place where the NSBoolNumber is  
replaced with YES/NO. Maybe its in EOSQLQualifier.

Setting a breakpoint on NSBoolNumber -stringValue might help to find it.

> Maybe It should be changed from [NSNumber numberWithBool:YES] to
> [NSBoolNumber numberWithBool:YES] and then check for Bool in
> NSNumber+PGVal.m

NSNumber is a class cluster, you never access private subclasses  
directly. In fact
   [NSNumber numberWithBool:YES]

will call
   [NSBoolNumber numberWithBool:YES]

and give you back an NSBoolNumber (simplified, in the real world it  
gives you back a cached instance).

Greets,
   Helge
-- 
Helge Hess
http://www.helgehess.eu/