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

Helge Hess gnustep-port@opengroupware.org
Sat, 9 Jun 2007 22:32:30 +0200


Hi,

I've committed a change. GDL calls -expressionValueInContext: to  
retrieve the textual SQL representation of an object. Per default  
(NSObject category) this calls either -stringValue or -description on  
the object.

I've added a gstep-base specific category which checks for NSBoolNumber.

Thanks,
   Helge

On Jun 9, 2007, at 08:25, Sebastian Reitenbach wrote:

> Hi Helge,
>
>>
>> So its consistent with libFoundation and GNUstep is different. But I
>> wouldn't really consider returning YES as wrong. The question is why
>> the SQL generator uses -description instead of processing the type of
>> the number and doing the right thing in the specific context.
>>
> as I know now, both versions are correct, I think the best would be  
> to add a
> check in EOSQLQualifier.m, in the
> - (id)initWithEntity:(EOEntity*)_entity
>   qualifierFormat:(NSString *)qualifierFormat, ...
> {
> method.
>
> Would it work to check all members of the va_list in that method  
> whether it
> is kindOfClass:NSNumber, and if so, then replace it with a 0 or 1?
> Don't know whether that would be a good idea, or would work at all...
>
> kind regards
> Sebastian
>
> -- 
> OpenGroupware.org GNUstep Port
> gnustep-port@opengroupware.org
> http://mail.opengroupware.org/mailman/listinfo/gnustep-port

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