[OGo-GNUstep-Port] postgresql adapter exception while entering a project
Sebastian Reitenbach
gnustep-port@opengroupware.org
Fri, 08 Jun 2007 21:14:26 +0200
Hi,
gnustep-port@opengroupware.org wrote:
> 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.
+NSNumber numberWithBool: returns different things in libFoundation and
gnustep-base.
what happens when you run this on apple:
#include <Foundation/Foundation.h>
int main (int argc, char **argv) {
NSLog(@"numberWithInt: %@, numberWithBool: %@", [NSNumber
numberWithInt:YES], [NSNumber numberWithBool:YES]);
NSLog(@"numberWithInt: %@, numberWithBool: %@", [NSNumber
numberWithInt:NO], [NSNumber numberWithBool:NO]);
return 0;
}
produces this output, if compiled against gnustep-base:
2007-06-08 20:46:56.843 numbertest2[12538] numberWithInt: 1, numberWithBool:
YES
2007-06-08 20:46:56.844 numbertest2[12538] numberWithInt: 0, numberWithBool:
NO
and this, when compiled against libFoundation:
Jun 08 20:46:10 numbertest2 [13059]: numberWithInt: 1, numberWithBool: 1
Jun 08 20:46:10 numbertest2 [13059]: numberWithInt: 0, numberWithBool: 0
Sebastian