Author: suresh
Date: 2005-04-29 07:15:32 -0400 (Fri, 29 Apr 2005)
New Revision: 43783

Modified:
   trunk/mcs/class/System.Data/System.Data/ChangeLog
   trunk/mcs/class/System.Data/System.Data/DataTableReader.cs
Log:
        Ctor: Copy DataTable [] to local array so that not to be disturbed.


Modified: trunk/mcs/class/System.Data/System.Data/ChangeLog
===================================================================
--- trunk/mcs/class/System.Data/System.Data/ChangeLog   2005-04-29 10:38:13 UTC 
(rev 43782)
+++ trunk/mcs/class/System.Data/System.Data/ChangeLog   2005-04-29 11:15:32 UTC 
(rev 43783)
@@ -1,7 +1,8 @@
 2005-04-29  Sureshkumar T  <[EMAIL PROTECTED]>
 
        * DataTableReader.cs: removed use of _first. throw if given index
-       is out of range of columns.
+       is out of range of columns. Copy DataTable [] to local array so
+       that not to be disturbed.
 
 2005-04-27  Sureshkumar T  <[EMAIL PROTECTED]>
 

Modified: trunk/mcs/class/System.Data/System.Data/DataTableReader.cs
===================================================================
--- trunk/mcs/class/System.Data/System.Data/DataTableReader.cs  2005-04-29 
10:38:13 UTC (rev 43782)
+++ trunk/mcs/class/System.Data/System.Data/DataTableReader.cs  2005-04-29 
11:15:32 UTC (rev 43783)
@@ -60,7 +60,11 @@
                             || dataTables.Length <= 0)
                                 throw new ArgumentException ("Cannot Create 
DataTable. Argument Empty!");
 
-                        this._tables = dataTables;
+                        this._tables = new DataTable [dataTables.Length];
+
+                        for (int i = 0; i < dataTables.Length; i++)
+                                this._tables [i] = dataTables [i];
+                        
                         _closed = false;
                         _index = 0;
                         _current = -1;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to