bugGNUstep - Bugs: bug #11694, EOQualifier creates wrong subclass...

Group
 
 

bug #11694: EOQualifier creates wrong subclass in -qualifierWithQualifierFormat:

Submitter:  Dirk Lattermann <dlatt>
Submitted:  Sat 22 Jan 2005 09:42:29 AM UTC
   
 
Category:  gdl2 Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  ayers
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 22 Jan 2005 03:08:33 PM UTC, comment #1: 

Thanks! should be fixed in CVS.  The parsing in that area is still very volatile though, but I don't have the resources to rewrite it now.

David Ayers <ayers>
Group Member
Sat 22 Jan 2005 09:42:29 AM UTC, original submission:  

EOQualifier *qual = [EOQualifier qualifierWithQualifierFormat:
     @"anIntAttr = 0"];

creates an EOKeyComparisonQualifier instead of an EOKeyValueQualifier. The bug seems to lie in EOQualifier.m,
function getKey() (line 183): numeric literals don't set the isKeyValue flag.

Workaround: use the format feature, i.e., for the above example, use

EOQualifier *qual = [EOQualifier qualifierWithQualifierFormat:
     @"anIntAttr = %d", 0];

Dirk Lattermann <dlatt>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-01-22 ayers StatusNone Fixed
    Assigned toNone ayers
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-bb6a.
Corresponding source code