1 2006-02-17 Chris Toshok <toshok@ximian.com>
3 * DbDataReader.cs: remove VisibleFieldCount attribute, and remove
4 IDataReader2 and IDataRecord2 interfaces.
6 2006-02-13 Senganal T <tsenganal@novell.com>
10 - Add table to schema only if MissingSchemaAction is not Ignore
11 Add schema to table if MissingSchemaAction is set to either of
14 - Set the Schema values only if MissingSchemaAction is set to
17 2006-01-31 Senganal T <tsenganal@novell.com>
20 - Corrected an error in the prev checkin.. Fixes #77415
22 2006-01-27 Senganal T <tsenganal@novell.com>
25 - Modified schema population to follow MissingSchemaAction and MissingMappingAction
26 - Add a column to the Primary Key only if its not a hidden key
27 - Added some argument checks
28 - Removed some redundant code
30 - Added argument checks
32 - Added InvalidEnumException , a helper function to print error msg
34 2006-01-11 Boris Kirzner <borisk@mainsoft.com>
35 * Index.cs: removed redundant call to RebuildIndex() in constructor.
37 2005-12-12 Konstantin Triger <kostat@mainsoft.com>
39 * Key.cs: Added ContainsVersion function, refactoring.
40 * Index.cs: Fixed Reset() to be ready for Update() calls.
41 Otherwise the index can be rebuilt with new values inside the
43 Fixed FindIndexExact(), Update(), Delete().
45 2005-11-22 Konstantin Triger <kostat@mainsoft.com>
47 * DbProviderFactory.cs: TARGET_JVM ifdef.
49 2005-11-21 Senganal T <tsenganal@novell.com>
55 * DbProviderFactories.cs
57 * DbProviderFactory.cs
60 * DbParameterCollection.cs
61 - Added stubs and other changes for ADO.NET 2.0 compatibility.
62 * DbMetaDataCollectionNames.cs (new file)
63 - Added DbMetaDataCollectionNames Enumeration
65 2005-10-24 Konstantin Triger <kostat@mainsoft.com>
67 * DataContainer.cs: removed extra type validation for object container
69 2005-10-14 Senganal T <tsenganal@novell.com>
72 - BuildSchema() : Set the value of DataColumn Property 'AllowDBNull'
73 as returned by database. Fixes bug#76433.
75 2005-09-21 Boris Kirzner <borisk@mainsoft.com>
77 - Rebuild index immediately after construction.
78 - Do not add records if they do not padd key filtration.
79 - Do not attempt to remove records if the are not in the index.
81 - Added HasFilter property, CanContain and DependsOn methods.
82 - Equals() uses filter expression comparison.
84 2005-09-07 Boris Kirzner <borisk@mainsoft.com>
85 * DataContainer.cs: Do not convert value if container type
88 2005-08-08 Gert Driesen <drieseng@users.sourceforge.net>
90 * DbTypes.cs: Marked internal to fix public API.
92 2005-08-05 Sureshkumar T <tsureshkumar@novell.com>
95 - Update (): set parameter values only after getting the
96 appropriate command from command builder. Close reader only if it
97 is not closed before. Use parameter's SourceVersion. Whitespace
98 corrections to comply with standard.
100 2005-07-22 Sureshkumar T <tsureshkumar@novell.com>
102 * DataColumnMappingCollection.cs: updated attributes & attribute
103 descriptions to match with masterinfos.
105 2005-07-15 Sureshkumar T <tsureshkumar@novell.com>
107 * DataTableMappingCollection.cs: GetTableMappingBySchemaAction:
108 meaningful error message if mapping is missing.
110 * DbDataAdapter.cs: Update: meaningful message if table is missing.
112 2005-06-22 Sureshkumar T <tsureshkumar@novell.com>
114 * Index.cs: Remove : length for Array.Copy (a, i+1, a, i, length -
117 2005-06-21 Sureshkumar T <tsureshkumar@novell.com>
119 * DbConnectionStringBuilder.cs: Implemented method for parsing
120 connection string through "ConnectionString" property.
122 * DbConnectionStringBuilderHelper.cs: Helper class to provide
123 conversion between string=>.net type mapping for connection string
124 builders. The idea is to use between other providers (odbc) as
127 2005-05-29 Boris Kirzner <borisk@mainsoft.com>
128 * DbCommand.cs - added #ifdef NET_2_0 on DbCommandOptionalFeatures (not used in TARGET_JVM).
129 * ExceptionHelper.cs - removed java references. Exceptions created on formatted text messages. Code styling fixes.
130 * DbParameterCollection.cs - implemented indexer properties.
131 * DbDataAdapter.cs - delagate exceptions creating to ExceptionHelper.
133 2005-05-25 Konstantin Triger <kostat@mainsoft.com>
135 * 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
137 2005-05-20 Umadevi S <sumadevi@novell.com>
138 * Added file DbProviderSpecificTypePropertyAttribute.cs
140 2005-05-19 Umadevi S <sumadevi@novell.com>
142 * RowUpdatingEventArgs.cs - added BaseCommand property for net 2.0
144 2005-05-18 Konstantin Triger <kostat@mainsoft.com>
146 * DbDataAdapter.cs: Initialize the schema values to defaults if the schema does not contain the information
148 2005-05-16 Sureshkumar T <tsureshkumar@novell.com>
150 * RecordCache.cs: quick fix to make build 2.0 profile (follow up
151 for check in 2005-05-16).
153 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
155 * Index.cs: validation that the updated row belongs to the index
157 2005-05-02 Konstantin Triger <kostat@mainsoft.com>
160 Added CharDataContainer, SByteDataContainer, UInt16DataContainer, UInt32DataContainer, UInt64DataContainer, DateTimeDataContainer, DecimalDataContainer
161 SetItemFromDataRecord: Changed to work with ISafeDataRecord or through GetValue to enable conversion
162 return DBNull.Value when the stored value is null
165 Ensure correct order for LoadDataRow
166 Fixing schema creation
170 LoadSchema: Retrieve needed fields only
173 Added Rows-to-Records mapping
174 Added ReadIDataRecord method for correct handling of default/auto increment values
176 * Added Index.cs: Index implementation
177 * Added Key.cs: Index descriptor implementation
180 2005-04-27 Sureshkumar T <tsureshkumar@novell.com>
182 * DbDataReader.cs: Added static method to construct the schema
183 table with default schema. Could be reused in many places.
185 2005-04-22 Sureshkumar T <tsureshkumar@novell.com>
187 * DbDataAdapter.cs: Moved FillTable and BuildSchema as static
188 methods as they are not operating on the current instance. This
189 could be reused to fill any table from a data reader.
191 * RecordCache.cs: While disposing records, make sure that the
192 record is not already disposed. i.e. to make sure later the same
193 record is not reused. Implemented a static method to compare two
194 version of records in a container.
196 2005-04-18 Sureshkumar T <tsureshkumar@novell.com>
198 * DataAdapter.cs: Implemenetd OnFillError handler.
200 * DbDataAdapter.cs: BuildSchema (): the table to be filled might
201 contain few additional columns as well. so mapping length should
202 be columns' length + fields' length.
204 2005-03-24 Sureshkumar T <tsureshkumar@novell.com>
206 * DbDataAdapter.cs: Update: If SourceColumn is null, do not set
207 value for the parameter.
209 2005-05-25 Umadevi S <sumadevi@novell.com>
210 * Added DbException.cs
212 2005-03-23 Sureshkumar T <tsureshkumar@novell.com>
214 * DbDataAdapter.cs: For Update, disable ReadOnly constraint
215 temporarily before updating the row. Info from Ingo Bauersachs.
216 SkipAllRemainingRows should also skip current row (msdn).
218 2005-03-22 Sureshkumar T <tsureshkumar@novell.com>
220 * DbDataAdapter.cs: Update (): update the rows based on the
221 UpdateRowSource property. Process further based on the
222 RowUpdatedEvent handler argument's Status property.
223 Fixes bug #73587. Thanks to mono@rankweg.ch (Ingo Bauersachs) for
224 bug report and patch.
226 * RowUpdatedEventArgs.cs: if custom error is not set, throw a
229 2005-03-01 Sureshkumar T <tsureshkumar@novell.com>
231 * ConnectionStringsSectionHandler.cs: Added. configuration section
232 handler for section "connectionStrings". This handler is a ad hoc
233 solution till the new configuration API is available in mono.
235 2005-02-04 Sureshkumar T <tsureshkumar@novell.com>
237 * DbDataAdapter.cs (Update ()) :
238 - Check for one return result set and map the values back to
240 - Check for output & return value parameters and update the value
241 back to mapped column
242 - check for recordsAffected only after closing the reader.
244 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
246 * DbConnection.cs: Implement Dispose pattern.
248 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
250 * DbDataPermission.cs : Empty.Union(Empty) is Empty.
252 2005-01-14 Atsushi Enomoto <atsushi@ximian.com>
254 * DbDataPermissionAttribute.cs, PermissionHelper.cs :
255 fixed some incompatible type of exception between 2.0 and 1.x.
257 Wrap exceptions thrown by SetValue() within ArgumentException.
259 2004-12-10 Sureshkumar T <tsureshkumar@novell.com>
261 * DbDataAdapter.cs (BuildSchema): Add the primary key schema iff
262 MissingSchemaAction is set to AddWithKey. Also, Add auto increment
263 value from the source table. fixes bug #67757 and #69110.
265 2004-11-24 Sureshkumar T <tsureshkumar@novell.com>
267 * DbProviderSupportedClasses.cs: Added correct enum values.
268 * DbConnection.cs: Missing virtual method EnlistTransaction Added.
269 * DbCommand.cs: Implemented ProviderFactory base factory methods.
271 2004-11-22 Sureshkumar T <tsureshkumar@novell.com>
273 * DbConnectionStringBuilder.cs: Class for helping creation of db
274 connection strings added.
276 2004-10-01 Sureshkumar T <tsureshkumar@novell.com>
278 * DbProviderFactories.cs: Implemented all the stubs. Added functionality for
279 getting available provider factories and creating a specified provider factory.
281 * DbProviderFactoriesConfigurationHandler.cs: Added functionality for handling
282 DbProviderFactories configuration section.
284 * DbProviderFactory.cs: Added protected constructor. SupportedClasses property
287 2004-09-14 Sebastien Pouliot <sebastien@ximian.com>
289 * DbDataPermission.cs: Implemented Intersect, IsSubsetOf and Union.
290 Implementation isn't complete as the restrictions seems to change the
291 expected results (breaking some rules like x.IsSubsetOf (x) == false).
292 Better (real-world) tests cases are required.
293 * PermissionHelper.cs: Fixed small differences between System.Data.dll
294 validations wrt to mscorlib.dll (XML and PermissionState).
296 2004-09-13 Sebastien Pouliot <sebastien@ximian.com>
298 * DbConnectionOptions.cs: New class for Fx 2.0. Partial implementation
299 to support new methods in DBDataPermission.
300 * DbConnectionString.cs: Updated class to split from/inherit
301 DbConnectionOptions class.
302 * DbDataPermission.cs: Implemented Add, Clear, Copy, ToXml methods and
303 completed constructors.
304 * DbDataPermissionAttribute.cs: Completed/fixed class.
305 * PermissionHelper.cs: Helper methods to create permission classes.
307 2004-08-31 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
308 * 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.
310 2004-07-21 Umadevi S <sumadevi@novell.com>
311 * DbDataRecord.cs - Fix for bug 58163. Return DBNull instead of null
313 2004-07-07 Umadevi S <sumadevi@novell.com>
314 * DataContainer.cs :CheckedforNull before calling the relavant setmethods in each of the
315 SetItemForDataRecord method for the DateTimeClass
318 2004-06-24 Atsushi Enomoto <atsushi@ximian.com>
320 * DataColumnMappingCollection.cs : fixed typo.
321 * DbDataAdapter.cs : column mappings were not filled.
323 2004-06-24 Atsushi Enomoto <atsushi@ximian.com>
325 * DataTableMapping.cs : Clone() should also clone ColumnMappings.
327 2004-06-18 Umadevi S <sumadevi@novell.com>
328 * DataContainer.cs - CheckedforNull before calling the relavant setmethods in each of the
329 SetItemForDataRecord method for all the classes.
331 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
332 * RecordCache.cs : Added CopyRecord mathod that copies single record from one table to another.
334 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
336 - Store and retreival of null and DBNull values reviewed.
337 - Added GetInt64 to support AutoIncrement of DataColumn.
338 - Added missing CopyValue method to BitDataContainer.
339 - Added FillValues method to propagate single value to whole container.
341 2004-06-10 Umadevi S <sumadevi@novell.com>
342 * DataTableMappingCollection.cs - fixed nunit testcase errors
343 IndexOfDataSetTable method
345 2004-06-09 Umadevi S <sumadevi@novell.com>
346 * DataTableMappingCollection.cs - fixed nunit testcase errors
347 - Add, GetByDataSetTable,Insert, Remove, RemoveAt methods.
349 2004-06-09 Umadevi S <sumadevi@novell.com>
350 * DataColumnMappingCollection.cs - fixed nunit testcase errors
351 - GetByDataSetColumn,IndexOfDataSetColumn, Remove methods.
353 2004-06-08 Umadevi S <sumadevi@novell.com>
354 * DataColumnMappingCollection.cs - fixed nunit testcase errors.
355 - remove, removeat, contains methods.
357 2004-06-04 Gert Driesen <drieseng@users.sourceforge.net>
359 * DataAdapter.cs: added missing protected ctor
360 * DbDataAdapter.cs: added stub for missing protected ctor
361 * DbDataPermission.cs: added stubs for missing protected
362 ctors, added stub for missing Clear method
364 2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
365 * DataColumnMappingCollection.cs: added missing attributes on
368 2004-05-27 Boris Kirzner <borisk@mainsoft.com>
369 * DataContainer.cs : Bug fixes in BitDataContainer.get_Item and StringDataContainer.SetValue .
371 2004-05-20 Gert Driesen (drieseng@users.sourceforge.net)
373 * DbDataPermissionAttribute.cs: change AllowMultiple and
374 Inherited to match .NET
376 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
377 * Datacontainer.cs : CompareValues reviewed. set_Item and get_Item of null and DBNull values in case of DataContainers
378 for primitive types reviewed. Added check for null values when reading from IDataRecord.
380 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
381 * RecordCache.cs - added. Each instance of record cache belongs to specific table
382 and manages pool of records ( indexes into data containers) to be used by data rows.
383 * DataContainer.cs - added. Provides implementation for data containers that holds data in arrays
384 of primitives or objects. Each data container belongs to specific DataColumn.
385 * DbDataAdapter.cs - changes to complete data storage redesign. Bug fix in FillTable
386 ( to fetch exact number of records required ).
388 2004-05-13 Umadevi S (sumadevi@novell.com)
389 * DbDataPermissionAttribute.cs - Added KeyRestrictions property with a TODO tag
391 2004-05-09 Gert Driesen (drieseng@users.sourceforge.net)
392 * ComparerFactory.cs: marked internal
394 2003-04-26 Boris Kirzner <borisk@mainsoft.com>
395 * DataColumnMappingCollection.cs : Small fix in exception message thrown.
397 2003-04-25 Boris Kirzner <borisk@mainsoft.com>
398 * DbDataAdapter.cs : Fixed bug in Fill :
399 - Reader can have empty results (fo example from UPDATE or DELETE).
400 - Reader can have results with no rows (SELECT that returns 0 rows but have columns)
401 - In FillTable - skip rows only once for each table.
403 2003-04-14 Juraj Skripsky <juraj@hotfeet.ch>
404 * DbDataAdapter.cs : Refactoring of Fill. New private method
405 FillTable does most of the work now. Use int[] instead of
406 hashtable for mapping. Move creation of tableArray[] outside
409 2004-03-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
411 * DbDataPermissionAttribute.cs: Added .Net 1.1 marks
412 * DataColumnMapping.cs: DO NOT USE the consts scheme if types can be referenced directly!
413 * DataTableMapping.cs: DO NOT USE the consts scheme if types can be referenced directly!
414 * DataColumnMappingConverter: Added stub
415 * DataTableMappingConverter: Added stub
417 2004-03-03 Eran Domb <erand@miansoft.com>
419 * ComparerFactory.cs : Added.
421 2004-01-10 Atsushi Enomoto <atsushi@ximian.com>
423 * DbDataPermission.cs : tiny fix to pass OleDbPermission.
425 2004-01-09 Atsushi Enomoto <atsushi@ximian.com>
427 * DbDataPermission.cs : .ctor(PermissionState state) should not call
428 obsolete .ctor(state, allowBlankPassword). csc reports an error.
430 2003-12-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
432 * DbDataAdapter.cs: handle MissingShemaAction.AddWithKey, call
433 AcceptChanges in Update when a CommandBuilder is used and
434 correctly fill information about primary keys in FillSchema.
435 Patch from Sergei Malinin (smalinin@amurnet.ru).
437 2003-12-23 Tim Coleman <tim@timcoleman.com>
438 * DbConnectionString.cs:
440 * DbProviderFactory.cs:
441 Fix typo to make CLS compliant
443 2003-12-16 Jackson Harper <jackson@ximian.com>
445 * SchemaTableOptionalColumn.cs: Add to fix default build
447 2003-12-16 Tim Coleman <tim@timcoleman.com>
448 * CatalogLocation.cs DbCommand.cs DbCommandBuilder.cs
449 * DbCommandOptionalFeatures.cs DbCommandSet.cs DbConnection.cs
450 * DbConnectionString.cs DbDataSourceEnumerator.cs
451 * DbDataUpdatableRecord.cs DbParameter.cs DbParameterCollection.cs
452 * DbProviderConfigurationHandler.cs DbProviderFactories.cs
453 * DbProviderFactoriesConfigurationHandler.cs DbProviderFactory.cs
454 * DbProviderSupportedClasses.cs DbTable.cs DbTransaction.cs
455 * GroupByBehavior.cs IdentifierCase.cs SchemaLocation.cs
456 * SchemaTableColumn.cs:
457 New stubs added for .NET 1.2
458 * DataAdapter.cs DataColumnMapping.cs DataColumnMappingCollection.cs
459 * DataTableMapping.cs DataTableMappingCollection.cs DbDataAdapter.cs
460 * DbDataPermission.cs DbDataPermissionAttribute.cs DbDataRecord.cs
461 * FieldNameLookup.cs SchemaInfo.cs:
462 Changes made for .NET 1.2
464 2003-10-22 Eran Domb <erand@miansoft.com>
465 * DbDataAdapter.cs : Check if there is mapping to avoid exception.
467 2003-11-26 Tim Coleman <tim@timcoleman.com>
468 * DbDataReader.cs: Add new stub class
470 2003-11-23 Pedro Martínez Juliá <yoros@wanadoo.es>
472 * DbDataAdapter.cs: Call command dispose in self dispose method. We
473 need to dispose the connections and other stuff stored in the
476 2003-11-10 Pedro Martínez Juliá <yoros@wanadoo.es>
478 * DataColumnMappingCollection.cs: Fix a missing exception when the
479 required mapping is not in the collection. MS.NET throws an
482 2003-10-22 Eran Domb <erand@miansoft.com>
484 * DbDataAdapter.cs (Fill): add only the mapped column to the dataTable (not all columns of dataReader).
485 Also closing the dataReader if an exception is thrown.
486 (Fill): the same as above.
487 (SetupSchema): in now return string (the table name).
488 (GetFillParameters): fix a bug.
489 (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.
490 (Update): first open the connection if needed. Catch an exception of the ExecuteQuery.
493 2003-09-30 Duncan Mak <duncan@ximian.com>
495 Patch from Eran Domb <eran@mainsoft.com>.
497 * DbDataAdapter.cs (Fill): Fixed an Exception from being thrown.
499 2003-09-25 Duncan Mak <duncan@ximian.com>
501 * DbDataAdapter.cs (Fill): Patch from Eran Domb, <eran@mainsoft.com>.
502 Fixes a possible NullReferenceException, more details here:
504 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002116.html
506 2003-09-21 eran <erand@mainsoft.com>
508 * DbDataRecord.cs: The method
509 System.Data.Common.DbDataRecord.GetValues(object[] values) did not
510 put the values of the DbDataRecord into values parameter.
512 2003-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
514 * DbDataAdapter.cs: provide a Type for ToArray to avoid invalid cast
515 exception. Thanks to Mark Easton <measton@tebiki.co.uk>.
517 2003-07-31 Duncan Mak <duncan@ximian.com>
519 * DataAdapter.cs (CloneInternals): Mark with ObsoleteAttribute for
522 2003-03-21 Alan Tam <Tam@SiuLung.com>
524 * DbDataAdapter.cs: Update now uses correct DataRowVersion
525 when accessing the data.
527 2003-03-17 Aleksey Demakov <avd@openlinksw.com>
529 * DbDataAdapter.cs: BuildSchema now uses ColumnName instead
530 of BaseColumnName (bug #39830) for DataColumn names.
531 BaseTableName is no longer taken into account as well.
533 2003-02-28 Aleksey Demakov <avd@openlinksw.com>
535 * DbDataAdapter.cs: Update (DataSet) updates the default
538 2003-02-25 Alan Tam <Tam@SiuLung.com>
540 * DbDataAdapter.cs: Added support for filling when schema is present.
541 Fixed incorrect behavior when ColumnMapping is present
542 when more than one fields have the same name. Implemented Dispose.
543 Fixed error when there is no ColumnMapping at all.
544 Still have some problems in finding the correct TableMapping
545 because the SourceTable name is not present in BuildSchema
547 2003-02-24 Aleksey Demakov <avd@openlinksw.com>
549 * DbDataAdapter.cs: The original code might pass a null DataTableMapping
550 value which is then used to create a RowUpdatingEventArgs
551 instance. So RowUpdatingEvent handler (for instance
552 CommandBuilder) could get null DataTableMapping which
553 might be unexpected. The patch makes sure that a non-null
554 DataTableMapping is passed.
556 2003-01-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
558 * DbEnumerator.cs: why does the runtime throw an invalid cast here? The
559 object is an Int16... Gotta fill a bug report and when fixed undo this
562 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
564 * DbDataRecord.cs: return DbNull.Value in GetValue () if value is null.
566 2002-10-31 Daniel Morgan <danmorg@sc.rr.com>
568 * SchemaInfo.cs: added missing properties to fix mcs build
570 2002-05-05 Miguel de Icaza <miguel@ximian.com>
572 * DataTableMapping.cs, DataTableMappingCollection.cs: comment out
573 interfaces we do not implement yet.
575 * DbDataAdapter.cs: Stub IEnumerable, comment out interfaces
576 we do not implement yet.
578 * DbDataPermissionAttribute.cs: call base constructor.