Sfoglia il codice sorgente

2002-11-01 Tim Coleman ([email protected]) :
* System.Data.Common/DbEnumerator.cs :
* System.Data.SqlClient/SqlDataReader.cs :
Add ColumnSize to schema table.

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

Tim Coleman 23 anni fa
parent
commit
caf566cfdb

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

@@ -1,3 +1,8 @@
+2002-11-01  Tim Coleman ([email protected]) :
+	* System.Data.Common/DbEnumerator.cs :
+	* System.Data.SqlClient/SqlDataReader.cs :
+		Add ColumnSize to schema table.
+
 2002-10-31  Tim Coleman ([email protected])
         * System.Data.Common/DbDataAdapter.cs :
                 Fix handling of nulls

+ 1 - 0
mcs/class/System.Data/System.Data.Common/DbEnumerator.cs

@@ -68,6 +68,7 @@ namespace System.Data.Common {
 				columnSchema.AllowDBNull = (bool) row ["AllowDBNull"];
 				columnSchema.ColumnName = row ["ColumnName"].ToString ();
 				columnSchema.ColumnOrdinal = (int) row ["ColumnOrdinal"];
+				columnSchema.ColumnSize = (int) row ["ColumnSize"];
 				columnSchema.DataTypeName = reader.GetDataTypeName (index);
 				columnSchema.FieldType = reader.GetFieldType (index);
 				columnSchema.IsReadOnly = (bool) row ["IsReadOnly"];

+ 1 - 0
mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs

@@ -399,6 +399,7 @@ namespace System.Data.SqlClient {
 				}
 
 				row ["ColumnOrdinal"] = schema.ColumnOrdinal;
+				row ["ColumnSize"] = schema.ColumnSize;
 				row ["AllowDBNull"] = schema.AllowDBNull;
 				row ["IsReadOnly"] = schema.IsReadOnly;
 				row ["IsIdentity"] = schema.IsIdentity;