* DataRow.cs: Added a new original row cache, if the current row happens
authorSureshkumar T <suresh@mono-cvs.ximian.com>
Tue, 21 Sep 2004 13:21:05 +0000 (13:21 -0000)
committerSureshkumar T <suresh@mono-cvs.ximian.com>
Tue, 21 Sep 2004 13:21:05 +0000 (13:21 -0000)
to be the original row. fixed bug #63097

svn path=/branches/mono-1-0/mcs/; revision=34169

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

index 78cc45ac10114a7bfdcf04f4038c4e11c223d3af..16ad51b1bae01e609650b56ce5321c3456341e7d 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-21  Sureshkumar T  <tsureshkumar@novell.com>
+
+       * DataRow.cs: Added a new original row cache, if the current row happens
+       to be the original row. fixed bug #63097
+
 2004-08-06  Atsushi Enomoto  <atsushi@ximian.com>
 
        * DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.
index 382659bbcfc471e1e5dc134a7662ae45983e51f7..00bb0d1bdbdcca71528716438e14b14ba014abaa 100644 (file)
@@ -489,7 +489,9 @@ namespace System.Data {
                        DataColumn column = _table.Columns[columnName];
                        _table.ChangingDataColumn (this, column, val);
                                
-                       if (_original < 0) { 
+                        if (_original < 0 || _original == _current) { 
+                               // really add a row cache, if _original is not there & 
+                               // make row modified
                                _original = Table.RecordCache.NewRecord();
                        }
                        CheckValue (val, column);