瀏覽代碼

2002-05-15 Tim Coleman <[email protected]>
* System.Data.Common/DbDataAdapter.cs:
Use table.Rows.Add (thisRow) instead of
table.ImportRow (thisRow)
* System.Data/DataRowCollection.cs:
Construct the ArrayList before using it

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

Tim Coleman 23 年之前
父節點
當前提交
9e470e8354

+ 7 - 0
mcs/class/System.Data/ChangeLog

@@ -1,3 +1,10 @@
+2002-05-15  Tim Coleman <[email protected]>
+	* System.Data.Common/DbDataAdapter.cs:
+		Use table.Rows.Add (thisRow) instead of 
+		table.ImportRow (thisRow)
+	* System.Data/DataRowCollection.cs:
+		Construct the ArrayList before using it
+
 2002-05-16  Tim Coleman <[email protected]>
 	* System.Data/DataTable.cs:
 		Construct the DataRowCollection in the DataTable

+ 1 - 1
mcs/class/System.Data/System.Data.Common/DbDataAdapter.cs

@@ -152,7 +152,7 @@ namespace System.Data.Common
                                         dataReader.GetValues (itemArray);
                                         thisRow = table.NewRow ();
                                         thisRow.ItemArray = itemArray;
-                                        table.ImportRow (thisRow);
+					table.Rows.Add (thisRow);
 					
 					if (AcceptChangesDuringFill) thisRow.AcceptChanges ();
 

+ 1 - 1
mcs/class/System.Data/System.Data/DataRowCollection.cs

@@ -19,7 +19,7 @@ namespace System.Data
 	[Serializable]
 	public class DataRowCollection : InternalDataCollectionBase {
 
-		private ArrayList rows = null;
+		private ArrayList rows = new ArrayList ();
 
 		// Item indexer
 		public DataRow this[int index] {