URL:
  <http://savannah.gnu.org/bugs/?29369>

                 Summary: [EORelationship isToManyToOne] can't properly work
for the typo
                 Project: GNUstep
            Submitted by: svg
            Submitted on: Пнд 29 Мар 2010 13:49:40
                Category: gdl2
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

 The following code has the typo in second call of [_definitionArray
objectAtIndex:]. 
===================================================================
      int count = [_definitionArray count];

      if (count >= 2)
        {
          EORelationship *firstRelationship = [_definitionArray
                                                objectAtIndex: 0];

          isToMany = [firstRelationship isToMany];

          <...>

          if (isToMany)
            {
              EORelationship *secondRelationship = 
                                              [_definitionArray  
objectAtIndex: 0];
===================================================================
The parameter should be 1. That is what the patch does.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Пнд 29 Мар 2010 13:49:40  Name:
gdl2_EOAccess_EORelationship_isToManyToOne.patch  Size: 432B   By: svg

<http://savannah.gnu.org/bugs/download.php?file_id=20062>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?29369>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-gnustep mailing list
Bug-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to