Drop dependend indexes on column removal.
[mono.git] / mcs / class / System.Data / System.Data / ChangeLog
index 8d9dba9d4fc5691b3d9d55d21684b72478bbf7b2..cd4cc507b37eda672f888d2f55673fced7a87f5b 100644 (file)
@@ -1,3 +1,252 @@
+2006-01-16 Boris Kirzner <borisk@mainsoft.com>
+       * DataTable.cs: Drop dependend indexes on column removal.
+
+2006-01-16  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * CustomDataClassGenerator.cs :
+         When a DataRelation connects the same table as parent and child,
+         generate parent row property as BlahRowParent. Fixed bug #77248.
+
+2006-01-10  Senganal T <tsenganal@novell.com>
+       * DataRowCollection.cs
+               - Added ListChangedEvent to notify reset of the collection.
+       * DataView.cs
+               - Subscribes to the ListChangedEvent of DataRowCollection
+               Fixes bug #77188
+
+2006-01-09  Senganal T <tsenganal@novell.com>
+       * RelatedDataView.cs
+       * DataColumn.cs
+               - Resolving a name clash in IExpression
+
+2006-01-06  Senganal T <tsenganal@novell.com>
+       
+       * DataColumn.cs
+       * DataColumnCollection.cs
+               - Reset the Parameters of DataColumn to Default Values when 
+               column is removed from the Table's Collection
+
+2006-01-03  Senganal T <tsenganal@novell.com>
+
+       * DataTable.cs :
+               - ParseSortString() : Changed the way the sort string is parsed.
+               Using a regex to parse the string.Fixes bug #77104
+
+2005-12-12  Konstantin Triger <kostat@mainsoft.com>
+
+       * DataRow.cs: Added index Updates.
+               EndEdit() fixed to first update indices and then AssertConstraints
+               based on those indices.
+               Added Validate() and AssertConstraints() functions.
+       * DataRowCollection.cs: Removed ValidateDataRowInternal().
+       * DataTable: Fixed Clear().
+
+2005-12-06  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * CustomDataClassGenerator.cs : (InitializeFields) handle AllowDBNull
+         and DefaultValue as well. Patch by Marek Habersack (bug #76709).
+
+2005-12-01  Miguel de Icaza  <miguel@novell.com>
+
+       * DataSet.cs: Apply patch from Robert Jordan, to fix #76817
+
+2005-11-26  Konstantin Triger <kostat@mainsoft.com>
+
+       * ConflictOption.cs: TARGET_JVM include.
+
+2005-11-11  Senganal T <tsenganal@novell.com>
+       
+       * ConflictOption.cs (new file)
+               - Added ConflictOption Enumeration 
+       * DataTableReader.cs
+       * IDataRecord2.cs 
+               - GetProviderSpecificFieldType : Corrected the method name
+
+2005-11-11  Senganal T <tsenganal@novell.com>
+
+       * DataSet.cs : Added the SchemaSerializationMode Property for NET_2_0
+       compatibility.
+       * SchemaSerializationMode.cs : Added SchemaSerializationMode Enumeration
+       for NET_2_0 compatibility.
+
+       Fixes bug #76517
+
+2005-10-20  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlSchemaWriter.cs : escape names in the schema with XmlConvert.
+         Fixed bug #76480.
+
+2005-10-14  Sureshkumar T  <tsureshkumar@novell.com>
+
+       * DataView.cs: Correct multiple throwing of events. Patch from
+       Marc Haisenko.
+       (RowStateFilter): Fire ListChangedEvent.
+       (ApplyDefaultSort): Fire ListChangedEvent.
+       (CompleteLastAdded): call UpdateIndex to remove the row from rowCache.
+       (IBindingList.Find): Implemented.
+
+2005-10-11  Sureshkumar T  <tsureshkumar@novell.com>
+
+       * DataView.cs (IBindingList): Implemented methods for IBindingList interface.
+
+2005-09-26  Lluis Sanchez Gual <lluis@novell.com>
+
+       * DataSet.cs: In IXmlSerializable.GetSchema, return null again for
+       untyped datasets. Fixes bug #76101.
+
+2005-09-21 Boris Kirzner <borisk@mainsoft.com>
+       * DataRow.cs: Fixes for index updating.
+       * DataTable.cs: 
+               - Reset case-sensitive indexes also if their filter contains columns 
+               of type string.
+               - Use GetIndex instead of FindIndex, so the indexes created in Select()
+               are reused. 
+       * RelatedDataView.cs: implement IExpression.Equals() and GetHashCode().
+       
+2005-09-20  Sureshkumar T  <tsureshkumar@novell.com>
+
+       * DataView.cs (Sort): Apply default Sorting Order if Sort property
+       is reset to null. Sort property handles this. Patch from Marc.
+
+       * DataTable.cs (ParseSortString): Patch from  Marc Haisenko for
+       allowing [ & ] in DataView.Sort string.
+
+2005-09-01 Boris Kirzner <borisk@mainsoft.com>
+       * System.Data/DataRowCollection.cs: indexes should be updated even if 
+       EnforceConstraints is false. Check for EnforceConstraints in
+       ValidateDataRowInternal.
+
+2005-08-08  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * DataView.cs: Changed accessibility of dataTable, rowState and
+       rowCache field to internal to fix public API. Assigned TypeConverter
+       to Table property.
+       * ForeignKeyConstraint.cs: IsConstraintViolated is now internal.
+       * Constraint.cs: IsConstraintViolated is now internal.
+       * UniqueConstraint.cs: IsConstraintViolated is now internal.
+
+2005-08-05  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlSchemaDataImporter.cs : When "dataset element" has identity
+         constraints, then first reserve constraints room for them and then
+         process elements, skipping pkey creation if there is already
+         reserved one. Fixed bug #75711.
+
+2005-08-05  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlDataInferenceLoader.cs : in GetElementMappingType(), don't guess
+         the same (QNamed) element again when it was already evaluated as
+         not simple type. Fixed one part of bug #75711.
+
+2005-08-02 Boris Kirzner <borisk@mainsoft.com>
+       * XmlSchemaDataImporter.cs : Data relations should be processed after the
+       keys, so no redundant constraints created while relations processing.
+
+2005-07-25 Boris Kirzner <borisk@mainsoft.com>
+       * FillOptions.cs, ConflictOptions.cs, UpdateOptions.cs: 
+       added ifdef TARGET_JVM.
+
+2005-07-22  Sureshkumar T  <tsureshkumar@novell.com>
+
+       * DataViewSettingCollection.cs, DataTableCollection.cs,
+       DataSet.cs, DataView.cs, DataColumn.cs, ForeignKeyConstraint.cs,
+       DataRelationCollection.cs, UniqueConstraint.cs, DataTable.cs,
+       DataColumnCollection.cs, DataRelation.cs, DataSet.cs:
+       - updated attributes & attribute descriptions to match with
+       masterinfos.
+
+       * DataView.cs: changed protected members
+       rowstate,rowcache,dataTable to protected internal.
+       * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint.cs:
+       changed InConstraintViolated to protected internal.
+       * ConflictOptions.cs, UpdateOptions.cs, FillOptions.cs: enclosed
+       with NET_2_0 define.
+
+2005-07-21  Sureshkumar T  <tsureshkumar@novell.com>
+
+       * ForeignKeyConstraint.cs: 
+       - IsConstraintViolated (): no matter what EnforceConstraints is,
+       this function now honestly validates. It is upto the caller to run
+       this or not.
+       - AddToConstraintCollectionSetup (): AssertConstraint according to
+       EnforceConstraints.
+       
+2005-07-21 Boris Kirzner <borisk@mainsoft.com>
+       * ForeignKeyConstraint.cs - IsConstraintViolated() should check also for Table.EnforceConstraints.
+       * DataTable.cs - EnforceConstraints becomes internal so it can be used by ForeignKeyConstraint.
+
+2005-07-19  Sureshkumar T  <tsureshkumar@novell.com>
+
+       * DataTable.cs - CopyConstraints (): copy constraints only if it
+       does not exist.
+
+       * DataSet.cs - Copy ():
+       - use activator.CreateInstance to create a typed dataset.
+       - copy tables if target does not exist, otherwise, just add rows.
+       - add relation only if it does not exists.
+
+       Typed datasets create the constraints & relations through
+       constructors. Fixes bug #75211.
+
+2005-07-14  Sureshkumar T  <tsureshkumar@novell.com>
+
+       * DataView.cs: Patch from Marc Haisenko to throw descriptive error
+       message when accessing Item, with invalid index.
+
+2005-07-14  Sureshkumar T  <tsureshkumar@novell.com>
+
+       reapplied patch from Marc Haisenko.
+       * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
+       is never null.
+
+2005-07-13  Sureshkumar T  <tsureshkumar@novell.com>
+
+       * DataRelationCollection.cs: adding a relation with same set of
+       parent columns & child columns, should not be allowed.
+
+2005-07-08  Sureshkumar T  <tsureshkumar@novell.com>
+
+       * DataTableReader.cs: GetSchemaTable: DataType column should be
+       passed a type of Type.
+
+       * DataRow.cs: Load : Fired necessary events.
+
+       * DataTable.cs: LoadDataRow (object [], LoadOption): Fired
+       necessary events.
+
+2005-06-28  Sureshkumar T  <tsureshkumar@novell.com>
+
+       * DataRow.cs: Delete (): if row is detached, do nothing.
+       fixes bug #75388.
+
+2005-06-22  Sureshkumar T  <tsureshkumar@novell.com>
+
+       * DataRow.cs: Added method MergeValuesToRow copy merge two rows
+       according to the merge rules.
+
+       * MergeManager.cs: (MergeRow): use MergeValuesToRow
+       API. CopyValuesToRow simply makes the target row same as source
+       row. Rather, MergeValuesToRow merges with the target row according
+       to the merge rules.
+
+2005-06-19  Konstantin Triger <kostat@mainsoft.com>
+
+       * DataSet.cs: Fixed ReadXml to work with IXmlSerializable
+
+2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
+
+       * DataViewManager.cs: fixes exception and creates DataView
+
+2005-06-15  Sureshkumar T  <tsureshkumar@novell.com>
+
+       * DataRow.cs: CheckChildRows: cascade parent changes to child rows
+       only if there is a change in columns of the fk constraint.
+
+2005-06-14  Sureshkumar T  <tsureshkumar@novell.com>
+
+       * DataSet.cs: GetChanges: if row is deleted, get parent rows based
+       on original version. fixes bug #75227.
+
 2005-06-13  Sureshkumar T  <tsureshkumar@novell.com>
 
        * DataRowCollection.cs: Find (keys, version): Added an overload to