2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Mon, 31 May 2004 19:12:07 +0000 (19:12 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Mon, 31 May 2004 19:12:07 +0000 (19:12 -0000)
* DataSet.cs : Loop-break of the last fix was incorrect.

svn path=/trunk/mcs/; revision=28585

mcs/class/System.Data/System.Data/ChangeLog
mcs/class/System.Data/System.Data/DataSet.cs

index 52ba93413d31ea4033225ff08bb18af2ca8c731b..82d674144216f42d74653e12cffd3ac29ce34d89 100644 (file)
@@ -1,3 +1,7 @@
+2004-05-31  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DataSet.cs : Loop-break of the last fix was incorrect.
+
 2004-05-31  Atsushi Enomoto  <atsushi@ximian.com>
 
        * DataSet.cs : When a row has no parent row but the table has parent
index 0a48e99e299f546ac221d729fa80a39155af6b03..cba10477c68df126d553708de835216a667a8ea3 100644 (file)
@@ -1164,9 +1164,14 @@ namespace System.Data {
                                                continue;
                                        break;
                                case 2:
+                                       bool skip = false;
                                        for (int i = 0; i < table.ParentRelations.Count; i++)
-                                               if (row.GetParentRow (table.ParentRelations [i]) != null)
+                                               if (row.GetParentRow (table.ParentRelations [i]) != null) {
+                                                       skip = true;
                                                        continue;
+                                               }
+                                       if (skip)
+                                               continue;
                                        break;
                                }