New test.
[mono.git] / mcs / class / System.Data / System.Data.Common / ChangeLog
index 4a7550d5aa264b2736856aabb157e7f006394e8f..dbab2e7dbd171544804e2bd3ca4b89db68e647a8 100644 (file)
@@ -1,3 +1,253 @@
+2010-03-26  Veerapuram Varadhan  <vvaradhan@novell.com>
+
+    ** Fixes #564833/580736
+    * DbDataAdapter.cs (*Command): Fix for .NET compatibility which
+    supports both type of adapters with/without discrete command
+    instances.
+               
+2009-10-28  Veerapuram Varadhan  <vvaradhan@novell.com>
+
+       ** Fixes #385028/#385029
+       * DbCommandBuilder.cs (CreateInsertCommand): Workaround for inserting 
+       DEFAULT values to non-null-columns.
+       (GetInsertCommand): New overload added to handle above workaround.
+       (set_DataAdapter): Register for the RowUpdatingEventHandlers.
+        
+2009-10-14  Jonathan Pryor  <jpryor@novell.com>
+
+       * DbConnection.cs: Throw NotImplementedException fom
+         DbConnection.DbProviderFactory, as DbProviderFactories isn't
+         included in the MonoTouch profile.
+
+2009-07-30  Veerapuram Varadhan  <vvaradhan@novell.com>
+
+       * DbDataAdapter.cs (IDbDataAdapter.get_*Command): For non 2.0 profile, do not 
+       implement these properties and related changes.
+       
+2009-07-30  Veerapuram Varadhan  <vvaradhan@novell.com>
+       
+       * DbDataAdapter.cs (set_DeleteCommand): Code cleanup.
+       
+2009-07-29  Veerapuram Varadhan  <vvaradhan@novell.com>
+       
+       * DbDataAdapter.cs (*Command properties): Don't call IDbDataAdapter.*Command, 
+       as provider specific DbDataAdapters would have its own implementation.
+       
+2009-07-27  Veerapuram Varadhan  <vvaradhan@novell.com>
+
+       * DbCommandBuilder.cs (CreateUpdateCommand): Don't set Nullable 
+       property "Original_*" fields.
+       
+2009-07-24  Veerapuram Varadhan  <vvaradhan@novell.com>
+       
+       * DbCommandBuilder.cs (Create*Command): Fill up the missing pieces from 
+       SqlCommandBuilder version of Create*Commands that fixes the failing tests.
+       
+2009-07-24  Veerapuram Varadhan  <vvaradhan@novell.com>
+       
+       * DbCommandBuilder.cs (CreateDeleteCommand, CreateUpdateCommand): Add the 
+       nullcheck-param into the respective command's parameter list.  Fixes 
+       build breaks.  Individual provider's CommandBuilder classes from 2.0 
+       profile onwards use the base version of methods to maintain these commands.
+       (Get*Command): Cleanup code duplication
+       * DbDataAdapter (Update): Use SourceColumnNullMapping property to handle 
+       nullcheckparams.  Fixes #522624.  Patch by 
+       Gert Driesen  <drieseng@users.sourceforge.net>.
+       
+2009-07-15  Veerapuram Varadhan  <vvaradhan@novell.com>
+
+       ** Part of fix for #325464
+       * DbParameter.cs (FrameworkDbType, DbTypeMapping, SystemType): New internal properties 
+       required to convert between DbType/FrameworkType/SystemType.
+       
+2009-05-10  Marek Habersack  <mhabersack@novell.com>
+
+       * DbConnection.cs: implemented the DbProviderFactory property
+
+2009-03-31  Veerapuram Varadhan  <vvaradhan@novell.com>
+
+       * Fixes rest of #480377
+       * DataContainer.cs (GetContainerData, GetExplicitValue): Added to handle cases 
+       where passed type overloads an explicit operator for conversion of values.
+       
+2009-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * DbCommandBuilder.cs (QuoteIdentifier): Throw NotSupportedException.
+       * DbDataAdapter.cs (Update): Add row causing concurrency violation
+       to DBConcurrencyException.
+
+2008-12-30  Raja R Harinath  <harinath@hurrynot.org>
+
+       Mildly rewrite duplicate-inferring logic.
+       * Index.cs (IndexDuplicateState): Remove.
+       (_hasDuplicates): Remove.  Replace by ...
+       (know_have_duplicates, know_no_duplicates): ... these.
+
+2008-12-30  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * DbCommandBuilder.cs: When CatalogSeparator or SchemaSeparator are
+       not set (or explicitly set to null or empty string), then return
+       default separator character. Added value check for CatalogLocation and
+       ConflictOption. Removed regions.
+
+2008-12-30  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * DbCommandBuilder.cs: Fixed default value for ConflicOption.
+
+2008-12-30  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * DbCommandBuilder.cs: Return a zero-length string when QuotePrefix or
+       QuoteSuffix are not set (or are set to null). Changing QuotePrefix or
+       QuoteSuffix after a command has been generated should result in an
+       InvalidOperationException.
+       * DbConnectionStringBuilder.cs: Added support for ODBC rules. Major
+       rewrite fixing many compatibility issues, and improving support for
+       connectionstring formats/characters.
+
+2008-11-25  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DbDataRecord.cs : it is abstract, so create different impl. class.
+       * DbEnumerator.cs : use above.
+
+2008-11-17  Raja R Harinath  <harinath@hurrynot.org>
+
+       Avoid allocating empty arrays.
+       * Index.cs (empty): New empty array constant.
+       (Reset): Initialize '_array' to 'empty'.
+       (RebuildIndex): Don't allocate array if it will be empty.
+       (FindAllIndexes): Use 'empty' instead of 'new int [0]'.
+
+2008-11-17  Raja R Harinath  <harinath@hurrynot.org>
+
+       * Index.cs: Remove use of Array and Size properties by taking
+       advantage of the invariant that _array is never null.
+       (EnsureArray): Remove.
+       (Array): Remove.
+
+2008-11-17  Raja R Harinath  <harinath@hurrynot.org>
+
+       * RecordCache.cs: Reduce some extraneous nesting.
+
+2008-10-07  Daniel Morgan  <monodanmorg@yahoo.com>
+
+       * DbConnectionStringBuilder.cs: fix setting and getting
+       the ConnectionString property
+
+2008-09-16  Veerapuram Varadhan  <vvaradhan@novell.com>
+
+       ** Fixes#421336 - Patch provided by <christian_hoff@gmx.net>    
+       DbCommandBuilder.cs: Several scenarios leading to exceptions when
+       creating the update, insert and delete commands: 
+
+       1. The "IsExpression" column in the column schema table can also
+       be DBNull which is equivalent to "false" but the DBCommandBuilder
+       does not check for DBNull and simply tries to cast it into a bool,
+       which will fail.
+
+       2. The commands do not get refreshed after a call to
+       UpdateSchema() because they are not set to NULL. This has the
+       consequence that empty commands(created with CreateNewCommand())
+       are returned afterwards.
+
+       3. Multiple parameters with the same name are generated if the
+       parameter names should be named after the columns.
+       
+2008-09-05  Raja R Harinath  <harinath@hurrynot.org>
+
+       * DataContainer.cs (*.ZeroOut): Rename from the somewhat unclear
+       'SetDefaultValue'.
+       (IsNull): Use a more idiomatic form of the short-circuit.
+       (*.SetValue): Convert to one-liners.
+
+2008-08-08  Raja R Harinath  <harinath@hurrynot.org>
+
+       Reduce massive code duplication
+       * DataContainer.cs (DataContainer): Rename from AbstractDataContainer.
+       Introduce new 'protected abstract' members to encapsulate
+       type-specific handling, and move all common code here.
+       (DataContainer.Create): Rename from CreateInstance.
+
+2008-07-06  Sebastien Pouliot  <sebastien@ximian.com> 
+
+       * DbDataReader.cs: Replace a few Type.GetType by typeof
+       [Found using Gendarme AvoidTypeGetTypeForConstantStringsRule]
+
+2008-07-03  Marek Habersack  <mhabersack@novell.com>
+
+       * DataAdapter.cs (BuildSchema): Check for null.
+       
+2008-07-01  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * RecordCache.cs: Kill some foreach loops.
+
+2008-04-21  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * DataColumnMappingCollection.cs: Modified argument names to match
+       MS. Code formatting.
+       * DataTableMappingCollection.cs: Modified argument names to match MS.
+       Code formatting.
+
+2008-03-23  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * DbDataAdapter.cs: Corcompare fixes and code formatting.
+       * DbDataRecord.cs: Corcompare fixes and code formatting.
+       * DataColumnMappingCollection.cs: Corcompare fixes and code formatting.
+       * RowUpdatedEventArgs.cs: Corcompare fixes and code formatting.
+       * DbParameterCollection.cs: Corcompare fixes and code formatting.
+
+2007-11-15  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DbProviderFactoriesConfigurationHandler.cs : Create() now takes
+         parent DataSet into consideration i.e. it now merges items in
+         different configurations. Fixed bug #323708.
+
+2007-10-21  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * DbDataPermissionAttribute.cs: In KeyRestrictionBehavior, reuse
+       ExceptionHelper.CheckEnumValue.
+       * ExceptionHelper.cs: Use same exception message for both 1.0 and 2.0.
+       * Index.cs: Fixed compiler warnings. Code formatting.
+
+2007-10-20  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * DbDataAdapter.cs: Implemented UpdateBatchSize setter.
+       * DataAdapter.cs: In FillLoadOption setter, ensure value is valid.
+       Modified MissingMappingAction and MissingSchemaAction setters to use
+       ExceptionHelper.CheckEnumValue to validate value. Spaces to tabs and
+       code formatting.
+       * ExceptionHelper.cs: Added CheckEnumValue method and modified
+       InvalidEnumValueException method to return AORE on 2.0 profile. Added
+       ConnectionClosed method that returns an InvalidOperationException.
+
+2007-10-19  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * DbTransaction.cs: Do not perform a rollback in Dispose (bool).
+       Leaves it up to deriving classes to override Dispose (bool) and
+       perform a rollback if necessary. Fixes bug #325397. Code formatting.
+       * ExceptionHelper.cs: Added TransactionNotUsable method that constructs
+       an InvalidOperationException to be thrown by IDbTransaction
+       implementations when the transaction is no longer open.
+
+2007-09-27  Nagappan A <anagappan@novell.com> 
+
+       * DbDataAdapter.cs: Added MonoTODO in appropriate place.
+       
+       * DbCommandBuilder.cs (initializeCommand): Implemented missing API.
+
+2007-09-25  Nagappan A  <anagappan@novell.com>
+
+       * DbConnection.cs: 2.0 attribute fixes.
+
+       * DataColumnMapping.cs: 2.0 attribute fixes.
+
+       * DbParameterCollection.cs: Code alignment.
+
+       * DataAdapter.cs: 2.0 attribute fixes.
+
+       * DataTableMapping.cs: 2.0 attribute fixes.
+
+       * RowUpdatingEventArgs.cs (BaseCommand): Code alignment.
+
 2007-09-24  Konstantin Triger <kostat@mainsoft.com>
 
        * DbEnumerator.cs, DbDataRecord.cs: refactoring.