1 2010-03-26 Veerapuram Varadhan <vvaradhan@novell.com>
3 ** Fixes #564833/580736
4 * DbDataAdapter.cs (*Command): Fix for .NET compatibility which
5 supports both type of adapters with/without discrete command
8 2009-10-28 Veerapuram Varadhan <vvaradhan@novell.com>
10 ** Fixes #385028/#385029
11 * DbCommandBuilder.cs (CreateInsertCommand): Workaround for inserting
12 DEFAULT values to non-null-columns.
13 (GetInsertCommand): New overload added to handle above workaround.
14 (set_DataAdapter): Register for the RowUpdatingEventHandlers.
16 2009-10-14 Jonathan Pryor <jpryor@novell.com>
18 * DbConnection.cs: Throw NotImplementedException fom
19 DbConnection.DbProviderFactory, as DbProviderFactories isn't
20 included in the MonoTouch profile.
22 2009-07-30 Veerapuram Varadhan <vvaradhan@novell.com>
24 * DbDataAdapter.cs (IDbDataAdapter.get_*Command): For non 2.0 profile, do not
25 implement these properties and related changes.
27 2009-07-30 Veerapuram Varadhan <vvaradhan@novell.com>
29 * DbDataAdapter.cs (set_DeleteCommand): Code cleanup.
31 2009-07-29 Veerapuram Varadhan <vvaradhan@novell.com>
33 * DbDataAdapter.cs (*Command properties): Don't call IDbDataAdapter.*Command,
34 as provider specific DbDataAdapters would have its own implementation.
36 2009-07-27 Veerapuram Varadhan <vvaradhan@novell.com>
38 * DbCommandBuilder.cs (CreateUpdateCommand): Don't set Nullable
39 property "Original_*" fields.
41 2009-07-24 Veerapuram Varadhan <vvaradhan@novell.com>
43 * DbCommandBuilder.cs (Create*Command): Fill up the missing pieces from
44 SqlCommandBuilder version of Create*Commands that fixes the failing tests.
46 2009-07-24 Veerapuram Varadhan <vvaradhan@novell.com>
48 * DbCommandBuilder.cs (CreateDeleteCommand, CreateUpdateCommand): Add the
49 nullcheck-param into the respective command's parameter list. Fixes
50 build breaks. Individual provider's CommandBuilder classes from 2.0
51 profile onwards use the base version of methods to maintain these commands.
52 (Get*Command): Cleanup code duplication
53 * DbDataAdapter (Update): Use SourceColumnNullMapping property to handle
54 nullcheckparams. Fixes #522624. Patch by
55 Gert Driesen <drieseng@users.sourceforge.net>.
57 2009-07-15 Veerapuram Varadhan <vvaradhan@novell.com>
59 ** Part of fix for #325464
60 * DbParameter.cs (FrameworkDbType, DbTypeMapping, SystemType): New internal properties
61 required to convert between DbType/FrameworkType/SystemType.
63 2009-05-10 Marek Habersack <mhabersack@novell.com>
65 * DbConnection.cs: implemented the DbProviderFactory property
67 2009-03-31 Veerapuram Varadhan <vvaradhan@novell.com>
69 * Fixes rest of #480377
70 * DataContainer.cs (GetContainerData, GetExplicitValue): Added to handle cases
71 where passed type overloads an explicit operator for conversion of values.
73 2009-01-03 Gert Driesen <drieseng@users.sourceforge.net>
75 * DbCommandBuilder.cs (QuoteIdentifier): Throw NotSupportedException.
76 * DbDataAdapter.cs (Update): Add row causing concurrency violation
77 to DBConcurrencyException.
79 2008-12-30 Raja R Harinath <harinath@hurrynot.org>
81 Mildly rewrite duplicate-inferring logic.
82 * Index.cs (IndexDuplicateState): Remove.
83 (_hasDuplicates): Remove. Replace by ...
84 (know_have_duplicates, know_no_duplicates): ... these.
86 2008-12-30 Gert Driesen <drieseng@users.sourceforge.net>
88 * DbCommandBuilder.cs: When CatalogSeparator or SchemaSeparator are
89 not set (or explicitly set to null or empty string), then return
90 default separator character. Added value check for CatalogLocation and
91 ConflictOption. Removed regions.
93 2008-12-30 Gert Driesen <drieseng@users.sourceforge.net>
95 * DbCommandBuilder.cs: Fixed default value for ConflicOption.
97 2008-12-30 Gert Driesen <drieseng@users.sourceforge.net>
99 * DbCommandBuilder.cs: Return a zero-length string when QuotePrefix or
100 QuoteSuffix are not set (or are set to null). Changing QuotePrefix or
101 QuoteSuffix after a command has been generated should result in an
102 InvalidOperationException.
103 * DbConnectionStringBuilder.cs: Added support for ODBC rules. Major
104 rewrite fixing many compatibility issues, and improving support for
105 connectionstring formats/characters.
107 2008-11-25 Atsushi Enomoto <atsushi@ximian.com>
109 * DbDataRecord.cs : it is abstract, so create different impl. class.
110 * DbEnumerator.cs : use above.
112 2008-11-17 Raja R Harinath <harinath@hurrynot.org>
114 Avoid allocating empty arrays.
115 * Index.cs (empty): New empty array constant.
116 (Reset): Initialize '_array' to 'empty'.
117 (RebuildIndex): Don't allocate array if it will be empty.
118 (FindAllIndexes): Use 'empty' instead of 'new int [0]'.
120 2008-11-17 Raja R Harinath <harinath@hurrynot.org>
122 * Index.cs: Remove use of Array and Size properties by taking
123 advantage of the invariant that _array is never null.
124 (EnsureArray): Remove.
127 2008-11-17 Raja R Harinath <harinath@hurrynot.org>
129 * RecordCache.cs: Reduce some extraneous nesting.
131 2008-10-07 Daniel Morgan <monodanmorg@yahoo.com>
133 * DbConnectionStringBuilder.cs: fix setting and getting
134 the ConnectionString property
136 2008-09-16 Veerapuram Varadhan <vvaradhan@novell.com>
138 ** Fixes#421336 - Patch provided by <christian_hoff@gmx.net>
139 DbCommandBuilder.cs: Several scenarios leading to exceptions when
140 creating the update, insert and delete commands:
142 1. The "IsExpression" column in the column schema table can also
143 be DBNull which is equivalent to "false" but the DBCommandBuilder
144 does not check for DBNull and simply tries to cast it into a bool,
147 2. The commands do not get refreshed after a call to
148 UpdateSchema() because they are not set to NULL. This has the
149 consequence that empty commands(created with CreateNewCommand())
150 are returned afterwards.
152 3. Multiple parameters with the same name are generated if the
153 parameter names should be named after the columns.
155 2008-09-05 Raja R Harinath <harinath@hurrynot.org>
157 * DataContainer.cs (*.ZeroOut): Rename from the somewhat unclear
159 (IsNull): Use a more idiomatic form of the short-circuit.
160 (*.SetValue): Convert to one-liners.
162 2008-08-08 Raja R Harinath <harinath@hurrynot.org>
164 Reduce massive code duplication
165 * DataContainer.cs (DataContainer): Rename from AbstractDataContainer.
166 Introduce new 'protected abstract' members to encapsulate
167 type-specific handling, and move all common code here.
168 (DataContainer.Create): Rename from CreateInstance.
170 2008-07-06 Sebastien Pouliot <sebastien@ximian.com>
172 * DbDataReader.cs: Replace a few Type.GetType by typeof
173 [Found using Gendarme AvoidTypeGetTypeForConstantStringsRule]
175 2008-07-03 Marek Habersack <mhabersack@novell.com>
177 * DataAdapter.cs (BuildSchema): Check for null.
179 2008-07-01 Rodrigo Kumpera <rkumpera@novell.com>
181 * RecordCache.cs: Kill some foreach loops.
183 2008-04-21 Gert Driesen <drieseng@users.sourceforge.net>
185 * DataColumnMappingCollection.cs: Modified argument names to match
187 * DataTableMappingCollection.cs: Modified argument names to match MS.
190 2008-03-23 Gert Driesen <drieseng@users.sourceforge.net>
192 * DbDataAdapter.cs: Corcompare fixes and code formatting.
193 * DbDataRecord.cs: Corcompare fixes and code formatting.
194 * DataColumnMappingCollection.cs: Corcompare fixes and code formatting.
195 * RowUpdatedEventArgs.cs: Corcompare fixes and code formatting.
196 * DbParameterCollection.cs: Corcompare fixes and code formatting.
198 2007-11-15 Atsushi Enomoto <atsushi@ximian.com>
200 * DbProviderFactoriesConfigurationHandler.cs : Create() now takes
201 parent DataSet into consideration i.e. it now merges items in
202 different configurations. Fixed bug #323708.
204 2007-10-21 Gert Driesen <drieseng@users.sourceforge.net>
206 * DbDataPermissionAttribute.cs: In KeyRestrictionBehavior, reuse
207 ExceptionHelper.CheckEnumValue.
208 * ExceptionHelper.cs: Use same exception message for both 1.0 and 2.0.
209 * Index.cs: Fixed compiler warnings. Code formatting.
211 2007-10-20 Gert Driesen <drieseng@users.sourceforge.net>
213 * DbDataAdapter.cs: Implemented UpdateBatchSize setter.
214 * DataAdapter.cs: In FillLoadOption setter, ensure value is valid.
215 Modified MissingMappingAction and MissingSchemaAction setters to use
216 ExceptionHelper.CheckEnumValue to validate value. Spaces to tabs and
218 * ExceptionHelper.cs: Added CheckEnumValue method and modified
219 InvalidEnumValueException method to return AORE on 2.0 profile. Added
220 ConnectionClosed method that returns an InvalidOperationException.
222 2007-10-19 Gert Driesen <drieseng@users.sourceforge.net>
224 * DbTransaction.cs: Do not perform a rollback in Dispose (bool).
225 Leaves it up to deriving classes to override Dispose (bool) and
226 perform a rollback if necessary. Fixes bug #325397. Code formatting.
227 * ExceptionHelper.cs: Added TransactionNotUsable method that constructs
228 an InvalidOperationException to be thrown by IDbTransaction
229 implementations when the transaction is no longer open.
231 2007-09-27 Nagappan A <anagappan@novell.com>
233 * DbDataAdapter.cs: Added MonoTODO in appropriate place.
235 * DbCommandBuilder.cs (initializeCommand): Implemented missing API.
237 2007-09-25 Nagappan A <anagappan@novell.com>
239 * DbConnection.cs: 2.0 attribute fixes.
241 * DataColumnMapping.cs: 2.0 attribute fixes.
243 * DbParameterCollection.cs: Code alignment.
245 * DataAdapter.cs: 2.0 attribute fixes.
247 * DataTableMapping.cs: 2.0 attribute fixes.
249 * RowUpdatingEventArgs.cs (BaseCommand): Code alignment.
251 2007-09-24 Konstantin Triger <kostat@mainsoft.com>
253 * DbEnumerator.cs, DbDataRecord.cs: refactoring.
254 * DbDataRecord.cs: GetValue() should return null instead of DBNull.
256 2007-08-10 Nagappan A <anagappan@novell.com>
258 * DbDataAdapter.cs (Fill): Fixed method signature.
260 2007-07-26 Nagappan A <anagappan@novell.com>
262 * DbConnection.cs: Removed bogus TODO.
264 2007-07-22 Nagappan A <anagappan@novell.com>
266 * DbConnection.cs: 2.0 missing features.
268 * DbDataAdapter.cs: 2.0 missing features.
270 2007-06-30 Gert Driesen <drieseng@users.sourceforge.net>
272 * DbDataAdapter.cs: Marked ICloneable.Clone obsolete to match MS.
274 2007-06-21 Nagappan A <anagappan@novell.com>
276 * DbConnectionStringBuilder.cs (Init): Modified the dictionary to
277 use StringComparer.InvariantCultureIgnoreCase.
278 (Add, ContainsKey): Checks whether argument is null or empty string.
280 2007-05-08 Adar Wesley <adarw@mainsoft.com>
282 * DbProviderFactory.cs: minor refactoring for throwing exceptions
284 2007-04-30 Marek Habersack <mhabersack@novell.com>
286 * DbProviderFactories.cs: throw the same exception MS.NET does.
288 2007-03-03 Gert Driesen <drieseng@users.sourceforge.net>
290 * DbProviderFactoriesConfigurationHandler.cs: Added support for
293 2007-03-03 Gert driesen <drieseng@users.sourceforge.net>
295 * ConnectionStringsSectionHandler.cs: Removed since the 2.0 config
297 * DbProviderFactoriesConfigurationHandler.cs: Fixed name of DataSet
298 to match MS. Removed SupportedClasses column since this is no longer
299 part of 2.0 profile (removed during beta). Throw
300 ConfigurationErrorsException for unrecognized elements. Mark methods
301 private, and refactor them. Added FIXMEs for missing checks for
302 unrecognized attributes.
303 * DbProviderFactories.cs: Marked constants internal. Replaced spaces
304 with tabs. Use ConfigurationManager.GetSection instead of deprecated
305 ConfigurationSettings.GetConfig.
307 2007-02-26 Atsushi Enomoto <atsushi@ximian.com>
309 * DbProviderFactoriesConfigurationHandler.cs : there was a config
310 test that used to be broken.
312 2007-02-26 Atsushi Enomoto <atsushi@ximian.com>
314 * DbProviderFactoriesConfigurationHandler.cs : remove "support"
315 attribute check, as it does not really do anything.
317 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
319 * DbProviderFactoriesConfigurationHandler.cs : "support" attribute is
320 optional. Fixed bug #80894.
322 2007-02-09 Nagappan A <anagappan@novell.com>
324 * DbProviderFactory.cs: Derived class has to implement all the
325 methods of this class.
327 * DbProviderFactoriesConfigurationHandler.cs (Create): Removed
330 2007-01-08 Nagappan A <anagappan@novell.com>
332 * DataTableMappingCollection.cs (AddRange): Implemented missing
335 * DbConnection.cs (GetSchema): Implemented missing NET 2.0 API,
336 based on SqlClient implementation.
338 * DbConnectionStringBuilder.cs (AppendKeyValuePair): Implemented
341 * DbDataReader.cs (GetData): Implemented missing API.
342 (GetDbDataReader): Implemented missing API.
344 * DbCommandBuilder.cs (BuildCache, BuildInformation)
345 (IncludedInInsert, IncludedInUpdate, IncludedInWhereClause)
346 (CreateDeleteCommand, CreateInsertCommand, CreateNewCommand)
347 (CreateUpdateCommand, CreateParameter): Added private methods.
348 (QuotedTableName, GetQuotedString, CatalogLocation)
349 (CatalogSeparator, ConflictOption, DataAdapter, QuotePrefix)
350 (QuoteSuffix, SchemaSeparator): Implemented public properties.
351 (SourceCommand): Implemented private property.
352 (Dispose, RowUpdatingHandler): Implemented protected methods.
353 (GetDeleteCommand, GetInsertCommand, GetUpdateCommand)
354 (QuoteIdentifier, UnquoteIdentifier, RefreshSchema): Implemented
357 * DbProviderFactory.cs: Removed MonoTODO's as the derived class
358 has to implement all the methods in this class.
360 * DataAdapter.cs (Fill): Implemented missing method.
362 * DbDataAdapter.cs (FillCommandBehavior): Implemented property.
364 2006-12-20 Nagappan A <anagappan@novell.com>
366 * DataColumnMapping.cs (GetDataColumnBySchemaAction): Implemented
369 * DbDataReader.cs: Removed TODO's where ever the implementation is
372 * RowUpdatedEventArgs.cs: Removed TODO's where ever the
373 implementation is available.
375 * DataAdapter.cs (FillInternal): Moved from DbDataAdapater.cs to
377 (BuildSchema): Moved from DbDataAdapter.cs.
378 (FillTable): Moved from DbDataAdapter.cs.
379 (OnFillErrorInternal): Implemented new internal method to raise an
381 (SetupSchema): Moved from DbDataAdapter.cs.
382 (FillInterl): Moved common implementation from DbDataAdapter.cs.
383 Removed TODO's where ever the implementation is available.
385 * DbDataAdapter.cs (OnRowUpdated): Implemented protected method.
386 (OnRowUpdating): Implemented protected method.
387 (CreateFillErrorEvent): Moved to DataAdapter.cs.
388 (Fill): Moved common implementation to DataAdapter.cs.
389 (FillTable): Moved to DataAdapter.cs.
390 (BuildSchema): Moved to DataAdapter.cs.
391 (SetupSchema): Moved to DataAdapter.cs.
393 2006-12-11 Miguel de Icaza <miguel@novell.com>
395 * DataAdapter.cs: Removed TODO, NotSupportedException was the
396 correct implementation.
398 2006-11-28 Nagappan A <anagappan@novell.com>
400 * DbDataAdapter.cs: Removed bogus MonoTODOs
402 * DataAdapter.cs: Removed bogus MonoTODOs
404 2006-11-15 Nagappan A <anagappan@novell.com>
406 * DbDataAdapter.cs (FillFromReader): Implemented missing API to
407 handle FillErrorEventHandler
408 (DataAdapter): Implemented missing .NET 2.0 function
409 (GetDeleteCommand): Returns DbDataAdapter deleteCommand internal
411 (GetInsertCommand): Returns DbDataAdapter insertCommand internal
413 (GetUpdateCommand): Returns DbDataAdapter updateCommand internal
416 2006-09-06 Konstantin Triger <kostat@mainsoft.com>
418 * DbDataAdapter.cs: added basic implementation for some 2.0 features.
420 2006-08-24 Vladimir Krasnov <vladimirk@mainsoft.com>
422 * DbProviderFactories.cs: added TARGET_JVM block to not supported
425 2006-08-06 Konstantin Triger <kostat@mainsoft.com>
427 * DbDataReader.cs: DbDataReader.Dipose(bool) - implemented.
429 2006-07-17 Senganal T <tsenganal@novell.com>
432 - GetAllRows : Added. Returns all the rows in the current
434 - GetDistinctRows :Added. Returns all the distinct rows (based
435 in Key Columns) in the index.
437 2006-07-13 Senganal T <tsenganal@novell.com>
439 * SchemaInfo.cs DbDataAdapter.cs DbConnectionOptions.cs DbParameter.cs
440 DbMetaDataColumnNames.cs DbTransaction.cs DataTableMapping.cs DataAdapter.cs
441 FieldNameLookup.cs DbDataRecord.cs DataColumnMappingCollection.cs DbCommand.cs
442 DbDataPermission.cs DbProviderFactory.cs DbCommandBuilder.cs DbConnectionString.cs
443 RowUpdatedEventArgs.cs DbDataReader.cs DbConnectionStringBuilder.cs DbConnection.cs
444 DataTableMappingCollection.cs :
447 2006-06-15 Senganal T <tsenganal@novell.com>
450 -Equals : Check for Equality of Sort Order too.
452 2006-04-07 Senganal T <tsenganal@novell.com>
455 * Update () : If the Update/Delete Query has a null check,
456 then populate the parameter value correctly.
458 2006-03-20 Senganal T <tsenganal@novell.com>
461 - Ctor () : Set Default Values for DataAdapter members
463 - Update () : Call row.AcceptChanges only if AcceptChangesDuringUpdate
464 is true. Fixes bug #77776
466 2006-03-09 Senganal T <tsenganal@novell.com>
469 - Update () : Add the new record in the correct position
471 2006-03-07 Senganal T <tsenganal@novell.com>
474 Reverted the changes from the earlier patch.
476 2006-02-22 Senganal T <tsenganal@novell.com>
479 - FillTable : Move BeginLoadData, EndLoadData outside the loop. Also,
480 move EndLoadData outsidet try,catch block. FillError is only for errors
481 occuring during loading the data into datatable.
483 - Set Default value of RowStateFilter to (CurrentRos | OriginalRows).
484 - ContainsVersion : If RowStateFilter is set to default value, return true
485 for Modified Rows as they can contain Default/Original versions.
487 2006-02-18 Raja R Harinath <harinath@gmail.com>
489 * DbConnectionStringBuilder.cs (ICollection.CopyTo): Use
490 _dictionary, not 'this' in cast.
492 2006-02-17 Chris Toshok <toshok@ximian.com>
494 * DbDataAdapter.cs: more 2.0 cleanup.
496 2006-02-17 Chris Toshok <toshok@ximian.com>
498 * DataAdapter.cs, DataColumnMappingCollection.cs,
499 DataColumnMapping.cs, DataTableMappingCollection.cs,
500 DataTableMapping.cs, DbCommandBuilder.cs,
501 DbConnectionStringBuilder.cs, DbParameterCollection.cs,
502 DbParameter.cs: pretty major attribute work.
504 2006-02-17 Chris Toshok <toshok@ximian.com>
506 * DbProviderFactory.cs: remove two methods. and mark the
507 DbProviderSupportedClasses ctor as internal since it's not part of
510 * DbTable.cs: remove this class from 2.0 build.. leave it for the
513 * RowUpdatingEventArgs.cs: this class isn't abstract in 2.0.
515 * RowUpdatedEventArgs.cs: this class isn't abstract in 2.0.
517 * SupportedJoinOperators.cs: new 2.0 enum.
519 * CatalogLocation.cs: fix enum values.
521 * GroupByBehavior.cs: same.
523 * IdentifierCase.cs: same.
525 * SchemaTableColumn.cs: class is static, not sealed. and add
528 * SchemaTableOptionalColumn.cs: same.
530 * DbDataReader.cs: oops, add back in VisibleFieldCount (i missed
531 it in the corcompare output), add EditorBrowsable attributes all
532 over the place, and fix some method signatures.
534 * DbDataUpdatableRecord.cs: remove this 2.0 file.
536 2006-02-17 Chris Toshok <toshok@ximian.com>
538 * DbDataReader.cs: remove VisibleFieldCount attribute, and remove
539 IDataReader2 and IDataRecord2 interfaces.
541 2006-02-13 Senganal T <tsenganal@novell.com>
545 - Add table to schema only if MissingSchemaAction is not Ignore
546 Add schema to table if MissingSchemaAction is set to either of
549 - Set the Schema values only if MissingSchemaAction is set to
552 2006-01-31 Senganal T <tsenganal@novell.com>
555 - Corrected an error in the prev checkin.. Fixes #77415
557 2006-01-27 Senganal T <tsenganal@novell.com>
560 - Modified schema population to follow MissingSchemaAction and MissingMappingAction
561 - Add a column to the Primary Key only if its not a hidden key
562 - Added some argument checks
563 - Removed some redundant code
565 - Added argument checks
567 - Added InvalidEnumException , a helper function to print error msg
569 2006-01-11 Boris Kirzner <borisk@mainsoft.com>
570 * Index.cs: removed redundant call to RebuildIndex() in constructor.
572 2005-12-12 Konstantin Triger <kostat@mainsoft.com>
574 * Key.cs: Added ContainsVersion function, refactoring.
575 * Index.cs: Fixed Reset() to be ready for Update() calls.
576 Otherwise the index can be rebuilt with new values inside the
577 Update() call itself.
578 Fixed FindIndexExact(), Update(), Delete().
580 2005-11-22 Konstantin Triger <kostat@mainsoft.com>
582 * DbProviderFactory.cs: TARGET_JVM ifdef.
584 2005-11-21 Senganal T <tsenganal@novell.com>
590 * DbProviderFactories.cs
592 * DbProviderFactory.cs
593 * DbCommandBuilder.cs
595 * DbParameterCollection.cs
596 - Added stubs and other changes for ADO.NET 2.0 compatibility.
597 * DbMetaDataCollectionNames.cs (new file)
598 - Added DbMetaDataCollectionNames Enumeration
600 2005-10-24 Konstantin Triger <kostat@mainsoft.com>
602 * DataContainer.cs: removed extra type validation for object container
604 2005-10-14 Senganal T <tsenganal@novell.com>
607 - BuildSchema() : Set the value of DataColumn Property 'AllowDBNull'
608 as returned by database. Fixes bug#76433.
610 2005-09-21 Boris Kirzner <borisk@mainsoft.com>
612 - Rebuild index immediately after construction.
613 - Do not add records if they do not padd key filtration.
614 - Do not attempt to remove records if the are not in the index.
616 - Added HasFilter property, CanContain and DependsOn methods.
617 - Equals() uses filter expression comparison.
619 2005-09-07 Boris Kirzner <borisk@mainsoft.com>
620 * DataContainer.cs: Do not convert value if container type
623 2005-08-08 Gert Driesen <drieseng@users.sourceforge.net>
625 * DbTypes.cs: Marked internal to fix public API.
627 2005-08-05 Sureshkumar T <tsureshkumar@novell.com>
630 - Update (): set parameter values only after getting the
631 appropriate command from command builder. Close reader only if it
632 is not closed before. Use parameter's SourceVersion. Whitespace
633 corrections to comply with standard.
635 2005-07-22 Sureshkumar T <tsureshkumar@novell.com>
637 * DataColumnMappingCollection.cs: updated attributes & attribute
638 descriptions to match with masterinfos.
640 2005-07-15 Sureshkumar T <tsureshkumar@novell.com>
642 * DataTableMappingCollection.cs: GetTableMappingBySchemaAction:
643 meaningful error message if mapping is missing.
645 * DbDataAdapter.cs: Update: meaningful message if table is missing.
647 2005-06-22 Sureshkumar T <tsureshkumar@novell.com>
649 * Index.cs: Remove : length for Array.Copy (a, i+1, a, i, length -
652 2005-06-21 Sureshkumar T <tsureshkumar@novell.com>
654 * DbConnectionStringBuilder.cs: Implemented method for parsing
655 connection string through "ConnectionString" property.
657 * DbConnectionStringBuilderHelper.cs: Helper class to provide
658 conversion between string=>.net type mapping for connection string
659 builders. The idea is to use between other providers (odbc) as
662 2005-05-29 Boris Kirzner <borisk@mainsoft.com>
663 * DbCommand.cs - added #ifdef NET_2_0 on DbCommandOptionalFeatures (not used in TARGET_JVM).
664 * ExceptionHelper.cs - removed java references. Exceptions created on formatted text messages. Code styling fixes.
665 * DbParameterCollection.cs - implemented indexer properties.
666 * DbDataAdapter.cs - delagate exceptions creating to ExceptionHelper.
668 2005-05-25 Konstantin Triger <kostat@mainsoft.com>
670 * DataContainer.cs: Correcting the order - first the record is queried whether the value it contains is null, and only if not the value is fetched
672 2005-05-20 Umadevi S <sumadevi@novell.com>
673 * Added file DbProviderSpecificTypePropertyAttribute.cs
675 2005-05-19 Umadevi S <sumadevi@novell.com>
677 * RowUpdatingEventArgs.cs - added BaseCommand property for net 2.0
679 2005-05-18 Konstantin Triger <kostat@mainsoft.com>
681 * DbDataAdapter.cs: Initialize the schema values to defaults if the schema does not contain the information
683 2005-05-16 Sureshkumar T <tsureshkumar@novell.com>
685 * RecordCache.cs: quick fix to make build 2.0 profile (follow up
686 for check in 2005-05-16).
688 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
690 * Index.cs: validation that the updated row belongs to the index
692 2005-05-02 Konstantin Triger <kostat@mainsoft.com>
695 Added CharDataContainer, SByteDataContainer, UInt16DataContainer, UInt32DataContainer, UInt64DataContainer, DateTimeDataContainer, DecimalDataContainer
696 SetItemFromDataRecord: Changed to work with ISafeDataRecord or through GetValue to enable conversion
697 return DBNull.Value when the stored value is null
700 Ensure correct order for LoadDataRow
701 Fixing schema creation
705 LoadSchema: Retrieve needed fields only
708 Added Rows-to-Records mapping
709 Added ReadIDataRecord method for correct handling of default/auto increment values
711 * Added Index.cs: Index implementation
712 * Added Key.cs: Index descriptor implementation
715 2005-04-27 Sureshkumar T <tsureshkumar@novell.com>
717 * DbDataReader.cs: Added static method to construct the schema
718 table with default schema. Could be reused in many places.
720 2005-04-22 Sureshkumar T <tsureshkumar@novell.com>
722 * DbDataAdapter.cs: Moved FillTable and BuildSchema as static
723 methods as they are not operating on the current instance. This
724 could be reused to fill any table from a data reader.
726 * RecordCache.cs: While disposing records, make sure that the
727 record is not already disposed. i.e. to make sure later the same
728 record is not reused. Implemented a static method to compare two
729 version of records in a container.
731 2005-04-18 Sureshkumar T <tsureshkumar@novell.com>
733 * DataAdapter.cs: Implemenetd OnFillError handler.
735 * DbDataAdapter.cs: BuildSchema (): the table to be filled might
736 contain few additional columns as well. so mapping length should
737 be columns' length + fields' length.
739 2005-03-24 Sureshkumar T <tsureshkumar@novell.com>
741 * DbDataAdapter.cs: Update: If SourceColumn is null, do not set
742 value for the parameter.
744 2005-05-25 Umadevi S <sumadevi@novell.com>
745 * Added DbException.cs
747 2005-03-23 Sureshkumar T <tsureshkumar@novell.com>
749 * DbDataAdapter.cs: For Update, disable ReadOnly constraint
750 temporarily before updating the row. Info from Ingo Bauersachs.
751 SkipAllRemainingRows should also skip current row (msdn).
753 2005-03-22 Sureshkumar T <tsureshkumar@novell.com>
755 * DbDataAdapter.cs: Update (): update the rows based on the
756 UpdateRowSource property. Process further based on the
757 RowUpdatedEvent handler argument's Status property.
758 Fixes bug #73587. Thanks to mono@rankweg.ch (Ingo Bauersachs) for
759 bug report and patch.
761 * RowUpdatedEventArgs.cs: if custom error is not set, throw a
764 2005-03-01 Sureshkumar T <tsureshkumar@novell.com>
766 * ConnectionStringsSectionHandler.cs: Added. configuration section
767 handler for section "connectionStrings". This handler is a ad hoc
768 solution till the new configuration API is available in mono.
770 2005-02-04 Sureshkumar T <tsureshkumar@novell.com>
772 * DbDataAdapter.cs (Update ()) :
773 - Check for one return result set and map the values back to
775 - Check for output & return value parameters and update the value
776 back to mapped column
777 - check for recordsAffected only after closing the reader.
779 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
781 * DbConnection.cs: Implement Dispose pattern.
783 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
785 * DbDataPermission.cs : Empty.Union(Empty) is Empty.
787 2005-01-14 Atsushi Enomoto <atsushi@ximian.com>
789 * DbDataPermissionAttribute.cs, PermissionHelper.cs :
790 fixed some incompatible type of exception between 2.0 and 1.x.
792 Wrap exceptions thrown by SetValue() within ArgumentException.
794 2004-12-10 Sureshkumar T <tsureshkumar@novell.com>
796 * DbDataAdapter.cs (BuildSchema): Add the primary key schema iff
797 MissingSchemaAction is set to AddWithKey. Also, Add auto increment
798 value from the source table. fixes bug #67757 and #69110.
800 2004-11-24 Sureshkumar T <tsureshkumar@novell.com>
802 * DbProviderSupportedClasses.cs: Added correct enum values.
803 * DbConnection.cs: Missing virtual method EnlistTransaction Added.
804 * DbCommand.cs: Implemented ProviderFactory base factory methods.
806 2004-11-22 Sureshkumar T <tsureshkumar@novell.com>
808 * DbConnectionStringBuilder.cs: Class for helping creation of db
809 connection strings added.
811 2004-10-01 Sureshkumar T <tsureshkumar@novell.com>
813 * DbProviderFactories.cs: Implemented all the stubs. Added functionality for
814 getting available provider factories and creating a specified provider factory.
816 * DbProviderFactoriesConfigurationHandler.cs: Added functionality for handling
817 DbProviderFactories configuration section.
819 * DbProviderFactory.cs: Added protected constructor. SupportedClasses property
822 2004-09-14 Sebastien Pouliot <sebastien@ximian.com>
824 * DbDataPermission.cs: Implemented Intersect, IsSubsetOf and Union.
825 Implementation isn't complete as the restrictions seems to change the
826 expected results (breaking some rules like x.IsSubsetOf (x) == false).
827 Better (real-world) tests cases are required.
828 * PermissionHelper.cs: Fixed small differences between System.Data.dll
829 validations wrt to mscorlib.dll (XML and PermissionState).
831 2004-09-13 Sebastien Pouliot <sebastien@ximian.com>
833 * DbConnectionOptions.cs: New class for Fx 2.0. Partial implementation
834 to support new methods in DBDataPermission.
835 * DbConnectionString.cs: Updated class to split from/inherit
836 DbConnectionOptions class.
837 * DbDataPermission.cs: Implemented Add, Clear, Copy, ToXml methods and
838 completed constructors.
839 * DbDataPermissionAttribute.cs: Completed/fixed class.
840 * PermissionHelper.cs: Helper methods to create permission classes.
842 2004-08-31 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
843 * DbDataAdapter.cs: Fix for out of memory exceptions when trying to fill a dataset with a query which doesn't return a resultset like insert, delete or update.
845 2004-07-21 Umadevi S <sumadevi@novell.com>
846 * DbDataRecord.cs - Fix for bug 58163. Return DBNull instead of null
848 2004-07-07 Umadevi S <sumadevi@novell.com>
849 * DataContainer.cs :CheckedforNull before calling the relavant setmethods in each of the
850 SetItemForDataRecord method for the DateTimeClass
853 2004-06-24 Atsushi Enomoto <atsushi@ximian.com>
855 * DataColumnMappingCollection.cs : fixed typo.
856 * DbDataAdapter.cs : column mappings were not filled.
858 2004-06-24 Atsushi Enomoto <atsushi@ximian.com>
860 * DataTableMapping.cs : Clone() should also clone ColumnMappings.
862 2004-06-18 Umadevi S <sumadevi@novell.com>
863 * DataContainer.cs - CheckedforNull before calling the relavant setmethods in each of the
864 SetItemForDataRecord method for all the classes.
866 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
867 * RecordCache.cs : Added CopyRecord mathod that copies single record from one table to another.
869 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
871 - Store and retreival of null and DBNull values reviewed.
872 - Added GetInt64 to support AutoIncrement of DataColumn.
873 - Added missing CopyValue method to BitDataContainer.
874 - Added FillValues method to propagate single value to whole container.
876 2004-06-10 Umadevi S <sumadevi@novell.com>
877 * DataTableMappingCollection.cs - fixed nunit testcase errors
878 IndexOfDataSetTable method
880 2004-06-09 Umadevi S <sumadevi@novell.com>
881 * DataTableMappingCollection.cs - fixed nunit testcase errors
882 - Add, GetByDataSetTable,Insert, Remove, RemoveAt methods.
884 2004-06-09 Umadevi S <sumadevi@novell.com>
885 * DataColumnMappingCollection.cs - fixed nunit testcase errors
886 - GetByDataSetColumn,IndexOfDataSetColumn, Remove methods.
888 2004-06-08 Umadevi S <sumadevi@novell.com>
889 * DataColumnMappingCollection.cs - fixed nunit testcase errors.
890 - remove, removeat, contains methods.
892 2004-06-04 Gert Driesen <drieseng@users.sourceforge.net>
894 * DataAdapter.cs: added missing protected ctor
895 * DbDataAdapter.cs: added stub for missing protected ctor
896 * DbDataPermission.cs: added stubs for missing protected
897 ctors, added stub for missing Clear method
899 2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
900 * DataColumnMappingCollection.cs: added missing attributes on
903 2004-05-27 Boris Kirzner <borisk@mainsoft.com>
904 * DataContainer.cs : Bug fixes in BitDataContainer.get_Item and StringDataContainer.SetValue .
906 2004-05-20 Gert Driesen (drieseng@users.sourceforge.net)
908 * DbDataPermissionAttribute.cs: change AllowMultiple and
909 Inherited to match .NET
911 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
912 * Datacontainer.cs : CompareValues reviewed. set_Item and get_Item of null and DBNull values in case of DataContainers
913 for primitive types reviewed. Added check for null values when reading from IDataRecord.
915 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
916 * RecordCache.cs - added. Each instance of record cache belongs to specific table
917 and manages pool of records ( indexes into data containers) to be used by data rows.
918 * DataContainer.cs - added. Provides implementation for data containers that holds data in arrays
919 of primitives or objects. Each data container belongs to specific DataColumn.
920 * DbDataAdapter.cs - changes to complete data storage redesign. Bug fix in FillTable
921 ( to fetch exact number of records required ).
923 2004-05-13 Umadevi S (sumadevi@novell.com)
924 * DbDataPermissionAttribute.cs - Added KeyRestrictions property with a TODO tag
926 2004-05-09 Gert Driesen (drieseng@users.sourceforge.net)
927 * ComparerFactory.cs: marked internal
929 2003-04-26 Boris Kirzner <borisk@mainsoft.com>
930 * DataColumnMappingCollection.cs : Small fix in exception message thrown.
932 2003-04-25 Boris Kirzner <borisk@mainsoft.com>
933 * DbDataAdapter.cs : Fixed bug in Fill :
934 - Reader can have empty results (fo example from UPDATE or DELETE).
935 - Reader can have results with no rows (SELECT that returns 0 rows but have columns)
936 - In FillTable - skip rows only once for each table.
938 2003-04-14 Juraj Skripsky <juraj@hotfeet.ch>
939 * DbDataAdapter.cs : Refactoring of Fill. New private method
940 FillTable does most of the work now. Use int[] instead of
941 hashtable for mapping. Move creation of tableArray[] outside
944 2004-03-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
946 * DbDataPermissionAttribute.cs: Added .Net 1.1 marks
947 * DataColumnMapping.cs: DO NOT USE the consts scheme if types can be referenced directly!
948 * DataTableMapping.cs: DO NOT USE the consts scheme if types can be referenced directly!
949 * DataColumnMappingConverter: Added stub
950 * DataTableMappingConverter: Added stub
952 2004-03-03 Eran Domb <erand@miansoft.com>
954 * ComparerFactory.cs : Added.
956 2004-01-10 Atsushi Enomoto <atsushi@ximian.com>
958 * DbDataPermission.cs : tiny fix to pass OleDbPermission.
960 2004-01-09 Atsushi Enomoto <atsushi@ximian.com>
962 * DbDataPermission.cs : .ctor(PermissionState state) should not call
963 obsolete .ctor(state, allowBlankPassword). csc reports an error.
965 2003-12-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
967 * DbDataAdapter.cs: handle MissingShemaAction.AddWithKey, call
968 AcceptChanges in Update when a CommandBuilder is used and
969 correctly fill information about primary keys in FillSchema.
970 Patch from Sergei Malinin (smalinin@amurnet.ru).
972 2003-12-23 Tim Coleman <tim@timcoleman.com>
973 * DbConnectionString.cs:
975 * DbProviderFactory.cs:
976 Fix typo to make CLS compliant
978 2003-12-16 Jackson Harper <jackson@ximian.com>
980 * SchemaTableOptionalColumn.cs: Add to fix default build
982 2003-12-16 Tim Coleman <tim@timcoleman.com>
983 * CatalogLocation.cs DbCommand.cs DbCommandBuilder.cs
984 * DbCommandOptionalFeatures.cs DbCommandSet.cs DbConnection.cs
985 * DbConnectionString.cs DbDataSourceEnumerator.cs
986 * DbDataUpdatableRecord.cs DbParameter.cs DbParameterCollection.cs
987 * DbProviderConfigurationHandler.cs DbProviderFactories.cs
988 * DbProviderFactoriesConfigurationHandler.cs DbProviderFactory.cs
989 * DbProviderSupportedClasses.cs DbTable.cs DbTransaction.cs
990 * GroupByBehavior.cs IdentifierCase.cs SchemaLocation.cs
991 * SchemaTableColumn.cs:
992 New stubs added for .NET 1.2
993 * DataAdapter.cs DataColumnMapping.cs DataColumnMappingCollection.cs
994 * DataTableMapping.cs DataTableMappingCollection.cs DbDataAdapter.cs
995 * DbDataPermission.cs DbDataPermissionAttribute.cs DbDataRecord.cs
996 * FieldNameLookup.cs SchemaInfo.cs:
997 Changes made for .NET 1.2
999 2003-10-22 Eran Domb <erand@miansoft.com>
1000 * DbDataAdapter.cs : Check if there is mapping to avoid exception.
1002 2003-11-26 Tim Coleman <tim@timcoleman.com>
1003 * DbDataReader.cs: Add new stub class
1005 2003-11-23 Pedro Martínez Juliá <yoros@wanadoo.es>
1007 * DbDataAdapter.cs: Call command dispose in self dispose method. We
1008 need to dispose the connections and other stuff stored in the
1011 2003-11-10 Pedro Martínez Juliá <yoros@wanadoo.es>
1013 * DataColumnMappingCollection.cs: Fix a missing exception when the
1014 required mapping is not in the collection. MS.NET throws an
1017 2003-10-22 Eran Domb <erand@miansoft.com>
1019 * DbDataAdapter.cs (Fill): add only the mapped column to the dataTable (not all columns of dataReader).
1020 Also closing the dataReader if an exception is thrown.
1021 (Fill): the same as above.
1022 (SetupSchema): in now return string (the table name).
1023 (GetFillParameters): fix a bug.
1024 (BuildSchema) - it now return Hashtable. Add columns to the table only if there is a mapping. Build an Hashtable that maps the columns from the table to the column from the reader.
1025 (Update): first open the connection if needed. Catch an exception of the ExecuteQuery.
1028 2003-09-30 Duncan Mak <duncan@ximian.com>
1030 Patch from Eran Domb <eran@mainsoft.com>.
1032 * DbDataAdapter.cs (Fill): Fixed an Exception from being thrown.
1034 2003-09-25 Duncan Mak <duncan@ximian.com>
1036 * DbDataAdapter.cs (Fill): Patch from Eran Domb, <eran@mainsoft.com>.
1037 Fixes a possible NullReferenceException, more details here:
1039 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002116.html
1041 2003-09-21 eran <erand@mainsoft.com>
1043 * DbDataRecord.cs: The method
1044 System.Data.Common.DbDataRecord.GetValues(object[] values) did not
1045 put the values of the DbDataRecord into values parameter.
1047 2003-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1049 * DbDataAdapter.cs: provide a Type for ToArray to avoid invalid cast
1050 exception. Thanks to Mark Easton <measton@tebiki.co.uk>.
1052 2003-07-31 Duncan Mak <duncan@ximian.com>
1054 * DataAdapter.cs (CloneInternals): Mark with ObsoleteAttribute for
1057 2003-03-21 Alan Tam <Tam@SiuLung.com>
1059 * DbDataAdapter.cs: Update now uses correct DataRowVersion
1060 when accessing the data.
1062 2003-03-17 Aleksey Demakov <avd@openlinksw.com>
1064 * DbDataAdapter.cs: BuildSchema now uses ColumnName instead
1065 of BaseColumnName (bug #39830) for DataColumn names.
1066 BaseTableName is no longer taken into account as well.
1068 2003-02-28 Aleksey Demakov <avd@openlinksw.com>
1070 * DbDataAdapter.cs: Update (DataSet) updates the default
1073 2003-02-25 Alan Tam <Tam@SiuLung.com>
1075 * DbDataAdapter.cs: Added support for filling when schema is present.
1076 Fixed incorrect behavior when ColumnMapping is present
1077 when more than one fields have the same name. Implemented Dispose.
1078 Fixed error when there is no ColumnMapping at all.
1079 Still have some problems in finding the correct TableMapping
1080 because the SourceTable name is not present in BuildSchema
1082 2003-02-24 Aleksey Demakov <avd@openlinksw.com>
1084 * DbDataAdapter.cs: The original code might pass a null DataTableMapping
1085 value which is then used to create a RowUpdatingEventArgs
1086 instance. So RowUpdatingEvent handler (for instance
1087 CommandBuilder) could get null DataTableMapping which
1088 might be unexpected. The patch makes sure that a non-null
1089 DataTableMapping is passed.
1091 2003-01-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1093 * DbEnumerator.cs: why does the runtime throw an invalid cast here? The
1094 object is an Int16... Gotta fill a bug report and when fixed undo this
1097 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1099 * DbDataRecord.cs: return DbNull.Value in GetValue () if value is null.
1101 2002-10-31 Daniel Morgan <danmorg@sc.rr.com>
1103 * SchemaInfo.cs: added missing properties to fix mcs build
1105 2002-05-05 Miguel de Icaza <miguel@ximian.com>
1107 * DataTableMapping.cs, DataTableMappingCollection.cs: comment out
1108 interfaces we do not implement yet.
1110 * DbDataAdapter.cs: Stub IEnumerable, comment out interfaces
1111 we do not implement yet.
1113 * DbDataPermissionAttribute.cs: call base constructor.