Преглед на файлове

The SupportedClasses column is no longer valid

svn path=/trunk/mcs/; revision=72878
Marek Habersack преди 19 години
родител
ревизия
f877231cae

+ 5 - 0
mcs/class/System.Data/System.Data.Common/ChangeLog

@@ -1,3 +1,8 @@
+2007-02-15  Marek Habersack  <[email protected]>
+
+	* DbProviderFactoriesConfigurationHandler.cs: remove unsupported
+	column "SupportedClasses" from the table.
+
 2007-02-09  Nagappan A  <[email protected]>
 
 	* DbProviderFactory.cs: Derived class has to implement all the

+ 0 - 6
mcs/class/System.Data/System.Data.Common/DbProviderFactoriesConfigurationHandler.cs

@@ -66,7 +66,6 @@ namespace System.Data.Common {
                         columns [1] = new DataColumn ("Description", typeof (string));
                         columns [2] = new DataColumn ("InvariantName", typeof (string));
                         columns [3] = new DataColumn ("AssemblyQualifiedName", typeof (string));
-                        columns [4] = new DataColumn ("SupportedClasses", typeof (int));
                         dt.Columns.AddRange (columns);
                         dt.PrimaryKey = new DataColumn [] {columns [2]};
                                 
@@ -99,23 +98,18 @@ namespace System.Data.Common {
                                 string description = "";
                                 string invariant = "";
                                 string type = "";
-                                string supportedClasses = "";
                                 int support;
 
                                 name            = GetAttributeValue (addNode, "name");
                                 description     = GetAttributeValue (addNode, "description");
                                 invariant       = GetAttributeValue (addNode, "invariant");
                                 type            = GetAttributeValue (addNode, "type");
-                                supportedClasses = GetAttributeValue (addNode, "support");
-                                
-                                support = int.Parse (supportedClasses, NumberStyles.HexNumber);
                                         
                                 DataRow row = dt.NewRow ();
                                 row [0] = name;
                                 row [1] = description;
                                 row [2] = invariant;
                                 row [3] = type;
-                                row [4] = support;
                                         
                                 dt.Rows.Add (row);
                         }        

+ 5 - 0
mcs/class/System.Data/Test/System.Data.Common/ChangeLog

@@ -1,3 +1,8 @@
+2007-02-15  Marek Habersack  <[email protected]>
+
+	* DbProviderFactoriesConfigurationHandlerTest.cs: the
+	"SupportedClasses" column is no longer supported.
+
 2006-07-13  Senganal T  <[email protected]>
 
 	* DBDataPermissionTest.cs : Removed invalid tests

+ 0 - 4
mcs/class/System.Data/Test/System.Data.Common/DbProviderFactoriesConfigurationHandlerTest.cs

@@ -56,12 +56,10 @@ namespace MonoTests.System.Data.Common {
             Assert.IsNotNull (dt.Columns ["Description"], "Description column missing");
             Assert.IsNotNull (dt.Columns ["InvariantName"], "InvariantName column missing");
             Assert.IsNotNull (dt.Columns ["AssemblyQualifiedName"], "AssemblyQualifiedName column missing");
-            Assert.IsNotNull (dt.Columns ["SupportedClasses"], "SupportedClasses column missing");
 
             DataColumn [] pk = dt.PrimaryKey;
             Assert.AreEqual (1, pk.Length, "primary key column not set");
             Assert.AreEqual ("InvariantName", pk [0].ColumnName, "InvariantName should be the primary key");
-
         }
 
         [Test]
@@ -75,8 +73,6 @@ namespace MonoTests.System.Data.Common {
             Assert.AreEqual ("ProviderTest.Description", r ["Description"].ToString (), "Description column missing");
             Assert.AreEqual ("ProviderTest.InvariantName", r ["InvariantName"].ToString (), "InvariantName column missing");
             Assert.AreEqual ("ProviderTest.AssemblyQualifiedName", r ["AssemblyQualifiedName"].ToString (), "AssemblyQualifiedName column missing");
-            Assert.AreEqual (255, (int) r ["SupportedClasses"], "SupportedClasses column missing");
-
         }
     }
 }