bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #29369] [EORelationship isToManyToOne] can't properly work for the


From: Sergey Golovin
Subject: [bug #29369] [EORelationship isToManyToOne] can't properly work for the typo
Date: Mon, 29 Mar 2010 08:49:42 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.1.8) Gecko/20100214 Ubuntu/9.10 (karmic) Firefox/3.5.8

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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]