2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.Data / System.Data / ChangeLog
index 91ae20598edd3bc514f6f6eb45c6658aec663e3e..9255dfd6e872ce840e8d1df46a830d88aa8ca357 100644 (file)
@@ -1,3 +1,370 @@
+2004-01-07  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlDataInferenceLoader.cs : test driver class should be excluded.
+
+2004-12-01  Miguel de Icaza  <miguel@ximian.com>
+
+       * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
+       is never null.
+
+2004-11-10  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * CustomDataClassGenerator.cs : generated foreign key constraint
+         construction code was creating empty child columns and thus it
+         was invalid. This fixes bug #69276 (patch by Martin Voelkle).
+
+2004-11-02  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * CustomDataClassGenerator.cs : custom DataTable ctor should call
+         InitializeFields(), and those DataColumns created by that method
+         should take data type. This should fix bug #68972.
+
+2004-10-15  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DataSet.cs : Also clear UnhandledAttributes ArrayList before 
+         generating next attribute column schema. This fixes bug #68432.
+
+2004-10-14 Umadevi S <sumadevi@novell.com>
+        * DataTable.cs : Corrected the Clone method to use  Activator.CreateInstance so that the
+        correct subclass is returned. This fixes bug #67631
+                                                                                        
+2004-10-14 Umadevi S <sumadevi@novell.com>
+       * DataSet.cs : Corrected the Clone method to use  Activator.CreateInstance so that the  
+       correct subclass is returned. This fixes bug #67627
+
+2004-10-13  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DataSet.cs : clear UnhandledAttributes ArrayList before generating
+         next element column schema. This fixes bug #68256.
+
+2004-10-12  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DataSet.cs : now xs:schema contains xmlns="".
+         This fixes bug #68008.
+
+2004-10-12  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DataSet.cs : DBNull attribute column should not be written as
+         empty attribute. This fixes bug #68007.
+
+2004-10-12  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DataSet.cs, XmlConstant.cs, XmlSchemaDataImporter.cs:
+         DataColumn.ReadOnly was not handled. This fixes bug #68005.
+         Attribute defaultValue was not handled too.
+
+2004-10-07  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DataSet.cs :
+         - When AllowDBNull is false on attribute DataColumn, its schema
+           should contain use="required". This fixes bug #66792.
+         - If MaxLength is set on attribute DataColumn, the mapped schema
+           type should contain maxLength facet. This fixes bug #66793.
+
+2004-10-04  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DataSet.cs : For a row, when a relation is not nested, then it is
+         still output target since it won't be written as a child of its
+         parent. It fixes bug #66379.
+
+2004-10-03  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DataSet.cs : Attribute constraint field XPath must be written as
+         @blah. This fixes bug #66366.
+
+2004-09-28 Umadevi S <sumadevi@novell.com>
+       * DataRow.cs - checked for Enforceconstraints, while using indices to search for related rows
+
+2004-09-24  Sureshkumar T  <tsureshkumar@novell.com>
+
+       * DataSet.cs : Don't check constraints for dataset clear
+       * DataRowCollection.cs : check for EnforceConstraints flag 
+       before checking foriegn key constraints in Clear method
+       * DataTable.cs : Redundant checking removed in Clear method as it is
+       checked in DataRowCollection.Clear method. 
+
+
+2004-09-19  Sureshkumar T <tsureshkumar@novell.com>
+       * DataRow.cs : while deserialization of dataset, adding a current row precedes the original row.
+                      hence, adding a row cache is necessary if the original row happens to be current.
+                      fixed bug #63097
+
+2004-08-23  Martin Baulig  <martin@ximian.com>
+
+       * XmlDataInferenceLoader.cs (Driver): Make this class internal,
+       not public.
+
+2004-08-18 Umadevi S <sumadevi@novell.com>
+       * DataView.cs - Completed most of the event handling. 
+       Thanks to Punit Todi <punit_todi@da-iict.org> for implementing most of it.
+       Thanks to Boris Kirzner <borisk@mainsoft.com> for commenting and suggesting changes to the implementation.
+       * DataTable.cs - Changed Access modifiers of class/methods since it was used by DataView.
+
+2004-08-06  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.
+
+2004-08-05  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlConstants.cs : Added constants for "msprop" support.
+       * DataSet.cs : ExtendedProperties should be written in the schema.
+         This fixes bug #61233.
+
+2004-07-27  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DataSet.cs : on serialization to XmlWriter, XmlConvert should be
+         used. There were also some culture dependency problems to write int.
+
+2004-06-27  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlDataInferenceLoader.cs : It was not always filling relation
+         child table information correctly. This fixes bug #60742.
+
+2004-06-23 Umadevi S <sumadevi@novell.com>
+       * UniqueConstraint.cs :changed a ifdef true to ifdef NET_1_1
+
+2004-06-22  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DataSet.cs : Fixed ReadXml(). When ReadMode is ReadSchema and the
+         schema is inside the document element (as created in XmlWriteMode
+         .WriteSchema), it should read schema from that non-document element.
+         This fixes one case reported in bug #60470.
+
+2004-06-20  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
+         inference target. For bug #60470. (MS does not support schema
+         document inference and results in unconsistent dataset structure.)
+
+2004-06-20  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DataTableCollection.cs : reset the table's DataSet to null when
+         removing a table from this collection.
+       * DataTable.cs : When Namespace is not specified explicitly, its
+         Namespace property reflects DataSet's Namespace if exist.
+         This fixes bug #60469.
+
+2004-06-18  Gert Driesen <drieseng@users.sourceforge.net>
+
+       * DBConcurrentcyException.cs: CRLF to LF
+       * DataViewSetting.cs: CRLF to LF
+
+2004-06-18  Gert Driesen <drieseng@users.sourceforge.net>
+
+        * DataViewSetting.cs: renamed fields to match MS.NET
+
+2004-06-18  Gert Driesen <drieseng@users.sourceforge.net>
+
+        * DBConcurrencyException.cs: fixed serialization compatibility with
+        MS.NET
+
+2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
+
+       * ChangeLog : Fix for misspelled words.
+
+2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
+
+       * DataRowCollection.cs : Removed onColumnRemoved since it is not in use.
+       
+2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
+
+       * DataTable.cs :
+         - Table stores default values for columns in special default values row. 
+         It is allocated once (in NewRow).
+         - DataTable.Copy rewrited. It works with uninitialized rows for better perfomance.
+         - OnRemoveColumn has nothing to perform by now.
+
+2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
+
+       * DataRow.cs : 
+         - Changed access of original, current and proposed indexes to internal.
+         - ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
+         - Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
+         - Use DataContainer.CopyValue and default values row for faster set of default values in row.
+         - SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness.
+         Care about Null and DBNull values is now in DataContainer.
+         - Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
+         - Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
+         - Fix in CopyState : clone column errors.
+         - Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.
+
+2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
+
+       * DataColumnCollection.cs : 
+         - Fix : Add() now delegates to Add(DataColumn).
+         - autoIncrement list holds DataColumn objects, and not just column names.
+
+2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
+
+       * DataColumn.cs : 
+         - AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
+         - DefaultValue fixes. Default value from now on is also stored in special record in 
+         DataTable, so we're able to set default value for the column faster (typed).
+       
+       
+2004-06-15  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DataSet.cs : children of non-root rows were not properly written.
+         Fixed bug #53959.
+
+2004-06-10 Umadevi S <sumadevi@novell.com>
+       * DataRelation.cs - Constructor
+       - The datatypes of the parentcolumn(s) and the childcolumn(s) should match
+
+2004-06-06  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlSchemaDataImporter.cs : We should fill Namespace for DataTable.
+
+2004-06-04  Gert Driesen <drieseng@users.sourceforge.net>
+
+       * Constraint.cs: marked methods internal to fix public API
+       * ConstraintCollection.cs: to fix public API, use 
+       DataTable.fInitInProgress to check whether initialization 
+       of DataTable is in progress
+       * DataColumn.cs: added stubs for missing methods
+       * DataRowBuilder.cs: marked Table property internal to
+       fix public API
+       * DataSet.cs: removed extra empty destructor, marked 
+       OnMergeFailed internal to fix public API
+       * DataTable.cs: use fInitInProgress field to hold init
+       status, to match MS.NET
+       * DataView.cs: added missing attributes on IsOpen
+
+2004-06-03  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DataSet.cs : Use NameTable.Get() before calling LookupNamespace()
+         in XmlNamespaceManager.
+
+2004-06-03  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DataSet.cs : complex table content child was not properly added
+         when it is the only one child in the parent table. Fixed bug #53959.
+
+2004-06-02  Gert Driesen <drieseng@users.sourceforge.net>
+       * DataTableTypeConverter.cs: added
+       * DataView.cs: added missing attribute on Table property
+       * DataViewManager.cs: moved attribute to correct property
+       * UniqueConstraint.cs: removed extra ReadOnly attribute from
+        IsPrimaryKey property
+
+2004-06-01  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DataRow.cs : ColumnsChanged event is not required in .ctor().
+
+2004-06-01  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlDataReader.cs : type change is required before setting value
+         string to row item.
+
+2004-05-31  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DataSet.cs : Loop-break of the last fix was incorrect.
+
+2004-05-31  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DataSet.cs : When a row has no parent row but the table has parent
+         relation(s), that row had been always ignored.
+
+2004-05-31  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
+         rejected same-named tables in different hierarchy. Thanks to Boris.
+
+2004-05-31  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlDiffLoader.cs : Added some Skip() that is required not to go to
+         infinite loop. Thanks to Boris for this fix.
+
+2004-05-31  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlDataInferenceLoader.cs : XmlSchema elements should not be infered.
+         Thanks to Boris for this fix.
+
+2004-05-30  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DataTable.cs : serialization .ctor() should use XmlReadMode.DiffGram
+         for ReadXml(). Thanks to Boris.
+
+2004-05-27  Boris Kirzner  <borisk@mainsoft.com>
+       * DataRow.cs : 
+               - CheckReadOnlyStatus : use typed (and faster comparing).
+               - EndEdit : bug fix - do not dispose record if it holds original version.
+               - SetValuesFromDataRecord : Take care about autoincrement columns.
+               
+
+2004-05-27  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * MergeManager.cs : don't output debug message to Console.
+
+2004-05-27  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlDataInferenceLoader.cs : Namespace are not imported to the table
+         structure. Thanks to Boris Kirzner for the fix.
+
+2004-05-27  Umadevi S <sumadevi@novell.com>
+         * DataRelationCollection.cs - fixed nunit test errors
+
+2004-05-27  Umadevi S <sumadevi@novell.com>
+        * DataTableCollection.cs - fixed nunit test errors
+
+2004-05-21  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DataColumnCollection.cs : NullReferenceException was thrown when
+         the table was not found.
+       * DataRowCollection.cs :
+         Find() just returns null for null value under MS.NET 1.1.
+         RemoveAt() should also avoid to call AcceptChanges() like Remove().
+       * UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
+         directly under MS.NET (for nunit test).
+
+2004-05-21  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf() 
+         caused problem on qualified name to get schema Field name.
+
+2004-05-21  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlDataReader.cs : Now data reader is namespace aware in all places.
+         When table's namespace is different, it entered to infinite loop.
+
+2004-05-19  Boris Kirzner  <borisk@mainsoft.com>
+       * MergeManager.cs : AdjustSchema now updates by reference new created table,
+       so in Merge you do not need to lookup for it (were unable to do this for unnamed tables).
+       Code styling.
+       
+2004-05-19  Boris Kirzner  <borisk@mainsoft.com>
+
+       * DataColumn.cs : In set_Item[int] - if autoincrement, adjust next autoincrement value.
+       * DataColumnCollection.cs : fixed parantethes.
+       * DataRow.cs : 
+               - AcceptChanges : do nothing if row state is unchanged.
+               - GetChildRows, GetParentRows  : bug fix (use correct index).
+       * DataRowCollection.cs : bug fix (compare all row's values).
+       * DataTable.cs : bug fix (use correct row version).
+       
+2004-05-20  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
+         When content type is Mixed, text column is not required (it is
+         required only when the complex type has no particle). 
+         "Repeated element" column is also created (considering maxOccurs=0 
+         and complex content extension).
+
+2004-05-20  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlSchemaDataImporter.cs : XmlSchemaGroupBase was not handled 
+         properly.
+
+2004-05-20  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlSchemaDataImporter.cs : Removed unused code and extra MonoTODO.
+         Fixed relation inference to consider attribute XPath.
+
+2004-05-19  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DataColumn.cs : Fixed set_Item[int]. Convert.ToInt64(DBNull.Value)
+         always fails.
+
 2004-05-19  Boris Kirzner  <borisk@mainsoft.com>
 
        * DataColumn.cs - removed default member attribute.