1 2006-01-31 Senganal T <tsenganal@novell.com>
4 - Corrected an error in the prev checkin.. Fixes #77415
6 2006-01-27 Senganal T <tsenganal@novell.com>
9 - Modified schema population to follow MissingSchemaAction and MissingMappingAction
10 - Add a column to the Primary Key only if its not a hidden key
11 - Added some argument checks
12 - Removed some redundant code
14 - Added argument checks
16 - Added InvalidEnumException , a helper function to print error msg
18 2006-01-11 Boris Kirzner <borisk@mainsoft.com>
19 * Index.cs: removed redundant call to RebuildIndex() in constructor.
21 2005-12-12 Konstantin Triger <kostat@mainsoft.com>
23 * Key.cs: Added ContainsVersion function, refactoring.
24 * Index.cs: Fixed Reset() to be ready for Update() calls.
25 Otherwise the index can be rebuilt with new values inside the
27 Fixed FindIndexExact(), Update(), Delete().
29 2005-11-22 Konstantin Triger <kostat@mainsoft.com>
31 * DbProviderFactory.cs: TARGET_JVM ifdef.
33 2005-11-21 Senganal T <tsenganal@novell.com>
39 * DbProviderFactories.cs
41 * DbProviderFactory.cs
44 * DbParameterCollection.cs
45 - Added stubs and other changes for ADO.NET 2.0 compatibility.
46 * DbMetaDataCollectionNames.cs (new file)
47 - Added DbMetaDataCollectionNames Enumeration
49 2005-10-24 Konstantin Triger <kostat@mainsoft.com>
51 * DataContainer.cs: removed extra type validation for object container
53 2005-10-14 Senganal T <tsenganal@novell.com>
56 - BuildSchema() : Set the value of DataColumn Property 'AllowDBNull'
57 as returned by database. Fixes bug#76433.
59 2005-09-21 Boris Kirzner <borisk@mainsoft.com>
61 - Rebuild index immediately after construction.
62 - Do not add records if they do not padd key filtration.
63 - Do not attempt to remove records if the are not in the index.
65 - Added HasFilter property, CanContain and DependsOn methods.
66 - Equals() uses filter expression comparison.
68 2005-09-07 Boris Kirzner <borisk@mainsoft.com>
69 * DataContainer.cs: Do not convert value if container type
72 2005-08-08 Gert Driesen <drieseng@users.sourceforge.net>
74 * DbTypes.cs: Marked internal to fix public API.
76 2005-08-05 Sureshkumar T <tsureshkumar@novell.com>
79 - Update (): set parameter values only after getting the
80 appropriate command from command builder. Close reader only if it
81 is not closed before. Use parameter's SourceVersion. Whitespace
82 corrections to comply with standard.
84 2005-07-22 Sureshkumar T <tsureshkumar@novell.com>
86 * DataColumnMappingCollection.cs: updated attributes & attribute
87 descriptions to match with masterinfos.
89 2005-07-15 Sureshkumar T <tsureshkumar@novell.com>
91 * DataTableMappingCollection.cs: GetTableMappingBySchemaAction:
92 meaningful error message if mapping is missing.
94 * DbDataAdapter.cs: Update: meaningful message if table is missing.
96 2005-06-22 Sureshkumar T <tsureshkumar@novell.com>
98 * Index.cs: Remove : length for Array.Copy (a, i+1, a, i, length -
101 2005-06-21 Sureshkumar T <tsureshkumar@novell.com>
103 * DbConnectionStringBuilder.cs: Implemented method for parsing
104 connection string through "ConnectionString" property.
106 * DbConnectionStringBuilderHelper.cs: Helper class to provide
107 conversion between string=>.net type mapping for connection string
108 builders. The idea is to use between other providers (odbc) as
111 2005-05-29 Boris Kirzner <borisk@mainsoft.com>
112 * DbCommand.cs - added #ifdef NET_2_0 on DbCommandOptionalFeatures (not used in TARGET_JVM).
113 * ExceptionHelper.cs - removed java references. Exceptions created on formatted text messages. Code styling fixes.
114 * DbParameterCollection.cs - implemented indexer properties.
115 * DbDataAdapter.cs - delagate exceptions creating to ExceptionHelper.
117 2005-05-25 Konstantin Triger <kostat@mainsoft.com>
119 * 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
121 2005-05-20 Umadevi S <sumadevi@novell.com>
122 * Added file DbProviderSpecificTypePropertyAttribute.cs
124 2005-05-19 Umadevi S <sumadevi@novell.com>
126 * RowUpdatingEventArgs.cs - added BaseCommand property for net 2.0
128 2005-05-18 Konstantin Triger <kostat@mainsoft.com>
130 * DbDataAdapter.cs: Initialize the schema values to defaults if the schema does not contain the information
132 2005-05-16 Sureshkumar T <tsureshkumar@novell.com>
134 * RecordCache.cs: quick fix to make build 2.0 profile (follow up
135 for check in 2005-05-16).
137 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
139 * Index.cs: validation that the updated row belongs to the index
141 2005-05-02 Konstantin Triger <kostat@mainsoft.com>
144 Added CharDataContainer, SByteDataContainer, UInt16DataContainer, UInt32DataContainer, UInt64DataContainer, DateTimeDataContainer, DecimalDataContainer
145 SetItemFromDataRecord: Changed to work with ISafeDataRecord or through GetValue to enable conversion
146 return DBNull.Value when the stored value is null
149 Ensure correct order for LoadDataRow
150 Fixing schema creation
154 LoadSchema: Retrieve needed fields only
157 Added Rows-to-Records mapping
158 Added ReadIDataRecord method for correct handling of default/auto increment values
160 * Added Index.cs: Index implementation
161 * Added Key.cs: Index descriptor implementation
164 2005-04-27 Sureshkumar T <tsureshkumar@novell.com>
166 * DbDataReader.cs: Added static method to construct the schema
167 table with default schema. Could be reused in many places.
169 2005-04-22 Sureshkumar T <tsureshkumar@novell.com>
171 * DbDataAdapter.cs: Moved FillTable and BuildSchema as static
172 methods as they are not operating on the current instance. This
173 could be reused to fill any table from a data reader.
175 * RecordCache.cs: While disposing records, make sure that the
176 record is not already disposed. i.e. to make sure later the same
177 record is not reused. Implemented a static method to compare two
178 version of records in a container.
180 2005-04-18 Sureshkumar T <tsureshkumar@novell.com>
182 * DataAdapter.cs: Implemenetd OnFillError handler.
184 * DbDataAdapter.cs: BuildSchema (): the table to be filled might
185 contain few additional columns as well. so mapping length should
186 be columns' length + fields' length.
188 2005-03-24 Sureshkumar T <tsureshkumar@novell.com>
190 * DbDataAdapter.cs: Update: If SourceColumn is null, do not set
191 value for the parameter.
193 2005-05-25 Umadevi S <sumadevi@novell.com>
194 * Added DbException.cs
196 2005-03-23 Sureshkumar T <tsureshkumar@novell.com>
198 * DbDataAdapter.cs: For Update, disable ReadOnly constraint
199 temporarily before updating the row. Info from Ingo Bauersachs.
200 SkipAllRemainingRows should also skip current row (msdn).
202 2005-03-22 Sureshkumar T <tsureshkumar@novell.com>
204 * DbDataAdapter.cs: Update (): update the rows based on the
205 UpdateRowSource property. Process further based on the
206 RowUpdatedEvent handler argument's Status property.
207 Fixes bug #73587. Thanks to mono@rankweg.ch (Ingo Bauersachs) for
208 bug report and patch.
210 * RowUpdatedEventArgs.cs: if custom error is not set, throw a
213 2005-03-01 Sureshkumar T <tsureshkumar@novell.com>
215 * ConnectionStringsSectionHandler.cs: Added. configuration section
216 handler for section "connectionStrings". This handler is a ad hoc
217 solution till the new configuration API is available in mono.
219 2005-02-04 Sureshkumar T <tsureshkumar@novell.com>
221 * DbDataAdapter.cs (Update ()) :
222 - Check for one return result set and map the values back to
224 - Check for output & return value parameters and update the value
225 back to mapped column
226 - check for recordsAffected only after closing the reader.
228 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
230 * DbConnection.cs: Implement Dispose pattern.
232 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
234 * DbDataPermission.cs : Empty.Union(Empty) is Empty.
236 2005-01-14 Atsushi Enomoto <atsushi@ximian.com>
238 * DbDataPermissionAttribute.cs, PermissionHelper.cs :
239 fixed some incompatible type of exception between 2.0 and 1.x.
241 Wrap exceptions thrown by SetValue() within ArgumentException.
243 2004-12-10 Sureshkumar T <tsureshkumar@novell.com>
245 * DbDataAdapter.cs (BuildSchema): Add the primary key schema iff
246 MissingSchemaAction is set to AddWithKey. Also, Add auto increment
247 value from the source table. fixes bug #67757 and #69110.
249 2004-11-24 Sureshkumar T <tsureshkumar@novell.com>
251 * DbProviderSupportedClasses.cs: Added correct enum values.
252 * DbConnection.cs: Missing virtual method EnlistTransaction Added.
253 * DbCommand.cs: Implemented ProviderFactory base factory methods.
255 2004-11-22 Sureshkumar T <tsureshkumar@novell.com>
257 * DbConnectionStringBuilder.cs: Class for helping creation of db
258 connection strings added.
260 2004-10-01 Sureshkumar T <tsureshkumar@novell.com>
262 * DbProviderFactories.cs: Implemented all the stubs. Added functionality for
263 getting available provider factories and creating a specified provider factory.
265 * DbProviderFactoriesConfigurationHandler.cs: Added functionality for handling
266 DbProviderFactories configuration section.
268 * DbProviderFactory.cs: Added protected constructor. SupportedClasses property
271 2004-09-14 Sebastien Pouliot <sebastien@ximian.com>
273 * DbDataPermission.cs: Implemented Intersect, IsSubsetOf and Union.
274 Implementation isn't complete as the restrictions seems to change the
275 expected results (breaking some rules like x.IsSubsetOf (x) == false).
276 Better (real-world) tests cases are required.
277 * PermissionHelper.cs: Fixed small differences between System.Data.dll
278 validations wrt to mscorlib.dll (XML and PermissionState).
280 2004-09-13 Sebastien Pouliot <sebastien@ximian.com>
282 * DbConnectionOptions.cs: New class for Fx 2.0. Partial implementation
283 to support new methods in DBDataPermission.
284 * DbConnectionString.cs: Updated class to split from/inherit
285 DbConnectionOptions class.
286 * DbDataPermission.cs: Implemented Add, Clear, Copy, ToXml methods and
287 completed constructors.
288 * DbDataPermissionAttribute.cs: Completed/fixed class.
289 * PermissionHelper.cs: Helper methods to create permission classes.
291 2004-08-31 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
292 * 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.
294 2004-07-21 Umadevi S <sumadevi@novell.com>
295 * DbDataRecord.cs - Fix for bug 58163. Return DBNull instead of null
297 2004-07-07 Umadevi S <sumadevi@novell.com>
298 * DataContainer.cs :CheckedforNull before calling the relavant setmethods in each of the
299 SetItemForDataRecord method for the DateTimeClass
302 2004-06-24 Atsushi Enomoto <atsushi@ximian.com>
304 * DataColumnMappingCollection.cs : fixed typo.
305 * DbDataAdapter.cs : column mappings were not filled.
307 2004-06-24 Atsushi Enomoto <atsushi@ximian.com>
309 * DataTableMapping.cs : Clone() should also clone ColumnMappings.
311 2004-06-18 Umadevi S <sumadevi@novell.com>
312 * DataContainer.cs - CheckedforNull before calling the relavant setmethods in each of the
313 SetItemForDataRecord method for all the classes.
315 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
316 * RecordCache.cs : Added CopyRecord mathod that copies single record from one table to another.
318 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
320 - Store and retreival of null and DBNull values reviewed.
321 - Added GetInt64 to support AutoIncrement of DataColumn.
322 - Added missing CopyValue method to BitDataContainer.
323 - Added FillValues method to propagate single value to whole container.
325 2004-06-10 Umadevi S <sumadevi@novell.com>
326 * DataTableMappingCollection.cs - fixed nunit testcase errors
327 IndexOfDataSetTable method
329 2004-06-09 Umadevi S <sumadevi@novell.com>
330 * DataTableMappingCollection.cs - fixed nunit testcase errors
331 - Add, GetByDataSetTable,Insert, Remove, RemoveAt methods.
333 2004-06-09 Umadevi S <sumadevi@novell.com>
334 * DataColumnMappingCollection.cs - fixed nunit testcase errors
335 - GetByDataSetColumn,IndexOfDataSetColumn, Remove methods.
337 2004-06-08 Umadevi S <sumadevi@novell.com>
338 * DataColumnMappingCollection.cs - fixed nunit testcase errors.
339 - remove, removeat, contains methods.
341 2004-06-04 Gert Driesen <drieseng@users.sourceforge.net>
343 * DataAdapter.cs: added missing protected ctor
344 * DbDataAdapter.cs: added stub for missing protected ctor
345 * DbDataPermission.cs: added stubs for missing protected
346 ctors, added stub for missing Clear method
348 2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
349 * DataColumnMappingCollection.cs: added missing attributes on
352 2004-05-27 Boris Kirzner <borisk@mainsoft.com>
353 * DataContainer.cs : Bug fixes in BitDataContainer.get_Item and StringDataContainer.SetValue .
355 2004-05-20 Gert Driesen (drieseng@users.sourceforge.net)
357 * DbDataPermissionAttribute.cs: change AllowMultiple and
358 Inherited to match .NET
360 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
361 * Datacontainer.cs : CompareValues reviewed. set_Item and get_Item of null and DBNull values in case of DataContainers
362 for primitive types reviewed. Added check for null values when reading from IDataRecord.
364 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
365 * RecordCache.cs - added. Each instance of record cache belongs to specific table
366 and manages pool of records ( indexes into data containers) to be used by data rows.
367 * DataContainer.cs - added. Provides implementation for data containers that holds data in arrays
368 of primitives or objects. Each data container belongs to specific DataColumn.
369 * DbDataAdapter.cs - changes to complete data storage redesign. Bug fix in FillTable
370 ( to fetch exact number of records required ).
372 2004-05-13 Umadevi S (sumadevi@novell.com)
373 * DbDataPermissionAttribute.cs - Added KeyRestrictions property with a TODO tag
375 2004-05-09 Gert Driesen (drieseng@users.sourceforge.net)
376 * ComparerFactory.cs: marked internal
378 2003-04-26 Boris Kirzner <borisk@mainsoft.com>
379 * DataColumnMappingCollection.cs : Small fix in exception message thrown.
381 2003-04-25 Boris Kirzner <borisk@mainsoft.com>
382 * DbDataAdapter.cs : Fixed bug in Fill :
383 - Reader can have empty results (fo example from UPDATE or DELETE).
384 - Reader can have results with no rows (SELECT that returns 0 rows but have columns)
385 - In FillTable - skip rows only once for each table.
387 2003-04-14 Juraj Skripsky <juraj@hotfeet.ch>
388 * DbDataAdapter.cs : Refactoring of Fill. New private method
389 FillTable does most of the work now. Use int[] instead of
390 hashtable for mapping. Move creation of tableArray[] outside
393 2004-03-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
395 * DbDataPermissionAttribute.cs: Added .Net 1.1 marks
396 * DataColumnMapping.cs: DO NOT USE the consts scheme if types can be referenced directly!
397 * DataTableMapping.cs: DO NOT USE the consts scheme if types can be referenced directly!
398 * DataColumnMappingConverter: Added stub
399 * DataTableMappingConverter: Added stub
401 2004-03-03 Eran Domb <erand@miansoft.com>
403 * ComparerFactory.cs : Added.
405 2004-01-10 Atsushi Enomoto <atsushi@ximian.com>
407 * DbDataPermission.cs : tiny fix to pass OleDbPermission.
409 2004-01-09 Atsushi Enomoto <atsushi@ximian.com>
411 * DbDataPermission.cs : .ctor(PermissionState state) should not call
412 obsolete .ctor(state, allowBlankPassword). csc reports an error.
414 2003-12-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
416 * DbDataAdapter.cs: handle MissingShemaAction.AddWithKey, call
417 AcceptChanges in Update when a CommandBuilder is used and
418 correctly fill information about primary keys in FillSchema.
419 Patch from Sergei Malinin (smalinin@amurnet.ru).
421 2003-12-23 Tim Coleman <tim@timcoleman.com>
422 * DbConnectionString.cs:
424 * DbProviderFactory.cs:
425 Fix typo to make CLS compliant
427 2003-12-16 Jackson Harper <jackson@ximian.com>
429 * SchemaTableOptionalColumn.cs: Add to fix default build
431 2003-12-16 Tim Coleman <tim@timcoleman.com>
432 * CatalogLocation.cs DbCommand.cs DbCommandBuilder.cs
433 * DbCommandOptionalFeatures.cs DbCommandSet.cs DbConnection.cs
434 * DbConnectionString.cs DbDataSourceEnumerator.cs
435 * DbDataUpdatableRecord.cs DbParameter.cs DbParameterCollection.cs
436 * DbProviderConfigurationHandler.cs DbProviderFactories.cs
437 * DbProviderFactoriesConfigurationHandler.cs DbProviderFactory.cs
438 * DbProviderSupportedClasses.cs DbTable.cs DbTransaction.cs
439 * GroupByBehavior.cs IdentifierCase.cs SchemaLocation.cs
440 * SchemaTableColumn.cs:
441 New stubs added for .NET 1.2
442 * DataAdapter.cs DataColumnMapping.cs DataColumnMappingCollection.cs
443 * DataTableMapping.cs DataTableMappingCollection.cs DbDataAdapter.cs
444 * DbDataPermission.cs DbDataPermissionAttribute.cs DbDataRecord.cs
445 * FieldNameLookup.cs SchemaInfo.cs:
446 Changes made for .NET 1.2
448 2003-10-22 Eran Domb <erand@miansoft.com>
449 * DbDataAdapter.cs : Check if there is mapping to avoid exception.
451 2003-11-26 Tim Coleman <tim@timcoleman.com>
452 * DbDataReader.cs: Add new stub class
454 2003-11-23 Pedro Martínez Juliá <yoros@wanadoo.es>
456 * DbDataAdapter.cs: Call command dispose in self dispose method. We
457 need to dispose the connections and other stuff stored in the
460 2003-11-10 Pedro Martínez Juliá <yoros@wanadoo.es>
462 * DataColumnMappingCollection.cs: Fix a missing exception when the
463 required mapping is not in the collection. MS.NET throws an
466 2003-10-22 Eran Domb <erand@miansoft.com>
468 * DbDataAdapter.cs (Fill): add only the mapped column to the dataTable (not all columns of dataReader).
469 Also closing the dataReader if an exception is thrown.
470 (Fill): the same as above.
471 (SetupSchema): in now return string (the table name).
472 (GetFillParameters): fix a bug.
473 (BuildSchema)
\96 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.
474 (Update): first open the connection if needed. Catch an exception of the ExecuteQuery.
477 2003-09-30 Duncan Mak <duncan@ximian.com>
479 Patch from Eran Domb <eran@mainsoft.com>.
481 * DbDataAdapter.cs (Fill): Fixed an Exception from being thrown.
483 2003-09-25 Duncan Mak <duncan@ximian.com>
485 * DbDataAdapter.cs (Fill): Patch from Eran Domb, <eran@mainsoft.com>.
486 Fixes a possible NullReferenceException, more details here:
488 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002116.html
490 2003-09-21 eran <erand@mainsoft.com>
492 * DbDataRecord.cs: The method
493 System.Data.Common.DbDataRecord.GetValues(object[] values) did not
494 put the values of the DbDataRecord into values parameter.
496 2003-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
498 * DbDataAdapter.cs: provide a Type for ToArray to avoid invalid cast
499 exception. Thanks to Mark Easton <measton@tebiki.co.uk>.
501 2003-07-31 Duncan Mak <duncan@ximian.com>
503 * DataAdapter.cs (CloneInternals): Mark with ObsoleteAttribute for
506 2003-03-21 Alan Tam <Tam@SiuLung.com>
508 * DbDataAdapter.cs: Update now uses correct DataRowVersion
509 when accessing the data.
511 2003-03-17 Aleksey Demakov <avd@openlinksw.com>
513 * DbDataAdapter.cs: BuildSchema now uses ColumnName instead
514 of BaseColumnName (bug #39830) for DataColumn names.
515 BaseTableName is no longer taken into account as well.
517 2003-02-28 Aleksey Demakov <avd@openlinksw.com>
519 * DbDataAdapter.cs: Update (DataSet) updates the default
522 2003-02-25 Alan Tam <Tam@SiuLung.com>
524 * DbDataAdapter.cs: Added support for filling when schema is present.
525 Fixed incorrect behavior when ColumnMapping is present
526 when more than one fields have the same name. Implemented Dispose.
527 Fixed error when there is no ColumnMapping at all.
528 Still have some problems in finding the correct TableMapping
529 because the SourceTable name is not present in BuildSchema
531 2003-02-24 Aleksey Demakov <avd@openlinksw.com>
533 * DbDataAdapter.cs: The original code might pass a null DataTableMapping
534 value which is then used to create a RowUpdatingEventArgs
535 instance. So RowUpdatingEvent handler (for instance
536 CommandBuilder) could get null DataTableMapping which
537 might be unexpected. The patch makes sure that a non-null
538 DataTableMapping is passed.
540 2003-01-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
542 * DbEnumerator.cs: why does the runtime throw an invalid cast here? The
543 object is an Int16... Gotta fill a bug report and when fixed undo this
546 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
548 * DbDataRecord.cs: return DbNull.Value in GetValue () if value is null.
550 2002-10-31 Daniel Morgan <danmorg@sc.rr.com>
552 * SchemaInfo.cs: added missing properties to fix mcs build
554 2002-05-05 Miguel de Icaza <miguel@ximian.com>
556 * DataTableMapping.cs, DataTableMappingCollection.cs: comment out
557 interfaces we do not implement yet.
559 * DbDataAdapter.cs: Stub IEnumerable, comment out interfaces
560 we do not implement yet.
562 * DbDataPermissionAttribute.cs: call base constructor.