1 2005-10-24 Konstantin Triger <kostat@mainsoft.com>
3 * DataContainer.cs: removed extra type validation for object container
5 2005-10-14 Senganal T <tsenganal@novell.com>
8 - BuildSchema() : Set the value of DataColumn Property 'AllowDBNull'
9 as returned by database. Fixes bug#76433.
11 2005-09-21 Boris Kirzner <borisk@mainsoft.com>
13 - Rebuild index immediately after construction.
14 - Do not add records if they do not padd key filtration.
15 - Do not attempt to remove records if the are not in the index.
17 - Added HasFilter property, CanContain and DependsOn methods.
18 - Equals() uses filter expression comparison.
20 2005-09-07 Boris Kirzner <borisk@mainsoft.com>
21 * DataContainer.cs: Do not convert value if container type
24 2005-08-08 Gert Driesen <drieseng@users.sourceforge.net>
26 * DbTypes.cs: Marked internal to fix public API.
28 2005-08-05 Sureshkumar T <tsureshkumar@novell.com>
31 - Update (): set parameter values only after getting the
32 appropriate command from command builder. Close reader only if it
33 is not closed before. Use parameter's SourceVersion. Whitespace
34 corrections to comply with standard.
36 2005-07-22 Sureshkumar T <tsureshkumar@novell.com>
38 * DataColumnMappingCollection.cs: updated attributes & attribute
39 descriptions to match with masterinfos.
41 2005-07-15 Sureshkumar T <tsureshkumar@novell.com>
43 * DataTableMappingCollection.cs: GetTableMappingBySchemaAction:
44 meaningful error message if mapping is missing.
46 * DbDataAdapter.cs: Update: meaningful message if table is missing.
48 2005-06-22 Sureshkumar T <tsureshkumar@novell.com>
50 * Index.cs: Remove : length for Array.Copy (a, i+1, a, i, length -
53 2005-06-21 Sureshkumar T <tsureshkumar@novell.com>
55 * DbConnectionStringBuilder.cs: Implemented method for parsing
56 connection string through "ConnectionString" property.
58 * DbConnectionStringBuilderHelper.cs: Helper class to provide
59 conversion between string=>.net type mapping for connection string
60 builders. The idea is to use between other providers (odbc) as
63 2005-05-29 Boris Kirzner <borisk@mainsoft.com>
64 * DbCommand.cs - added #ifdef NET_2_0 on DbCommandOptionalFeatures (not used in TARGET_JVM).
65 * ExceptionHelper.cs - removed java references. Exceptions created on formatted text messages. Code styling fixes.
66 * DbParameterCollection.cs - implemented indexer properties.
67 * DbDataAdapter.cs - delagate exceptions creating to ExceptionHelper.
69 2005-05-25 Konstantin Triger <kostat@mainsoft.com>
71 * 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
73 2005-05-20 Umadevi S <sumadevi@novell.com>
74 * Added file DbProviderSpecificTypePropertyAttribute.cs
76 2005-05-19 Umadevi S <sumadevi@novell.com>
78 * RowUpdatingEventArgs.cs - added BaseCommand property for net 2.0
80 2005-05-18 Konstantin Triger <kostat@mainsoft.com>
82 * DbDataAdapter.cs: Initialize the schema values to defaults if the schema does not contain the information
84 2005-05-16 Sureshkumar T <tsureshkumar@novell.com>
86 * RecordCache.cs: quick fix to make build 2.0 profile (follow up
87 for check in 2005-05-16).
89 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
91 * Index.cs: validation that the updated row belongs to the index
93 2005-05-02 Konstantin Triger <kostat@mainsoft.com>
96 Added CharDataContainer, SByteDataContainer, UInt16DataContainer, UInt32DataContainer, UInt64DataContainer, DateTimeDataContainer, DecimalDataContainer
97 SetItemFromDataRecord: Changed to work with ISafeDataRecord or through GetValue to enable conversion
98 return DBNull.Value when the stored value is null
101 Ensure correct order for LoadDataRow
102 Fixing schema creation
106 LoadSchema: Retrieve needed fields only
109 Added Rows-to-Records mapping
110 Added ReadIDataRecord method for correct handling of default/auto increment values
112 * Added Index.cs: Index implementation
113 * Added Key.cs: Index descriptor implementation
116 2005-04-27 Sureshkumar T <tsureshkumar@novell.com>
118 * DbDataReader.cs: Added static method to construct the schema
119 table with default schema. Could be reused in many places.
121 2005-04-22 Sureshkumar T <tsureshkumar@novell.com>
123 * DbDataAdapter.cs: Moved FillTable and BuildSchema as static
124 methods as they are not operating on the current instance. This
125 could be reused to fill any table from a data reader.
127 * RecordCache.cs: While disposing records, make sure that the
128 record is not already disposed. i.e. to make sure later the same
129 record is not reused. Implemented a static method to compare two
130 version of records in a container.
132 2005-04-18 Sureshkumar T <tsureshkumar@novell.com>
134 * DataAdapter.cs: Implemenetd OnFillError handler.
136 * DbDataAdapter.cs: BuildSchema (): the table to be filled might
137 contain few additional columns as well. so mapping length should
138 be columns' length + fields' length.
140 2005-03-24 Sureshkumar T <tsureshkumar@novell.com>
142 * DbDataAdapter.cs: Update: If SourceColumn is null, do not set
143 value for the parameter.
145 2005-05-25 Umadevi S <sumadevi@novell.com>
146 * Added DbException.cs
148 2005-03-23 Sureshkumar T <tsureshkumar@novell.com>
150 * DbDataAdapter.cs: For Update, disable ReadOnly constraint
151 temporarily before updating the row. Info from Ingo Bauersachs.
152 SkipAllRemainingRows should also skip current row (msdn).
154 2005-03-22 Sureshkumar T <tsureshkumar@novell.com>
156 * DbDataAdapter.cs: Update (): update the rows based on the
157 UpdateRowSource property. Process further based on the
158 RowUpdatedEvent handler argument's Status property.
159 Fixes bug #73587. Thanks to mono@rankweg.ch (Ingo Bauersachs) for
160 bug report and patch.
162 * RowUpdatedEventArgs.cs: if custom error is not set, throw a
165 2005-03-01 Sureshkumar T <tsureshkumar@novell.com>
167 * ConnectionStringsSectionHandler.cs: Added. configuration section
168 handler for section "connectionStrings". This handler is a ad hoc
169 solution till the new configuration API is available in mono.
171 2005-02-04 Sureshkumar T <tsureshkumar@novell.com>
173 * DbDataAdapter.cs (Update ()) :
174 - Check for one return result set and map the values back to
176 - Check for output & return value parameters and update the value
177 back to mapped column
178 - check for recordsAffected only after closing the reader.
180 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
182 * DbConnection.cs: Implement Dispose pattern.
184 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
186 * DbDataPermission.cs : Empty.Union(Empty) is Empty.
188 2005-01-14 Atsushi Enomoto <atsushi@ximian.com>
190 * DbDataPermissionAttribute.cs, PermissionHelper.cs :
191 fixed some incompatible type of exception between 2.0 and 1.x.
193 Wrap exceptions thrown by SetValue() within ArgumentException.
195 2004-12-10 Sureshkumar T <tsureshkumar@novell.com>
197 * DbDataAdapter.cs (BuildSchema): Add the primary key schema iff
198 MissingSchemaAction is set to AddWithKey. Also, Add auto increment
199 value from the source table. fixes bug #67757 and #69110.
201 2004-11-24 Sureshkumar T <tsureshkumar@novell.com>
203 * DbProviderSupportedClasses.cs: Added correct enum values.
204 * DbConnection.cs: Missing virtual method EnlistTransaction Added.
205 * DbCommand.cs: Implemented ProviderFactory base factory methods.
207 2004-11-22 Sureshkumar T <tsureshkumar@novell.com>
209 * DbConnectionStringBuilder.cs: Class for helping creation of db
210 connection strings added.
212 2004-10-01 Sureshkumar T <tsureshkumar@novell.com>
214 * DbProviderFactories.cs: Implemented all the stubs. Added functionality for
215 getting available provider factories and creating a specified provider factory.
217 * DbProviderFactoriesConfigurationHandler.cs: Added functionality for handling
218 DbProviderFactories configuration section.
220 * DbProviderFactory.cs: Added protected constructor. SupportedClasses property
223 2004-09-14 Sebastien Pouliot <sebastien@ximian.com>
225 * DbDataPermission.cs: Implemented Intersect, IsSubsetOf and Union.
226 Implementation isn't complete as the restrictions seems to change the
227 expected results (breaking some rules like x.IsSubsetOf (x) == false).
228 Better (real-world) tests cases are required.
229 * PermissionHelper.cs: Fixed small differences between System.Data.dll
230 validations wrt to mscorlib.dll (XML and PermissionState).
232 2004-09-13 Sebastien Pouliot <sebastien@ximian.com>
234 * DbConnectionOptions.cs: New class for Fx 2.0. Partial implementation
235 to support new methods in DBDataPermission.
236 * DbConnectionString.cs: Updated class to split from/inherit
237 DbConnectionOptions class.
238 * DbDataPermission.cs: Implemented Add, Clear, Copy, ToXml methods and
239 completed constructors.
240 * DbDataPermissionAttribute.cs: Completed/fixed class.
241 * PermissionHelper.cs: Helper methods to create permission classes.
243 2004-08-31 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
244 * 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.
246 2004-07-21 Umadevi S <sumadevi@novell.com>
247 * DbDataRecord.cs - Fix for bug 58163. Return DBNull instead of null
249 2004-07-07 Umadevi S <sumadevi@novell.com>
250 * DataContainer.cs :CheckedforNull before calling the relavant setmethods in each of the
251 SetItemForDataRecord method for the DateTimeClass
254 2004-06-24 Atsushi Enomoto <atsushi@ximian.com>
256 * DataColumnMappingCollection.cs : fixed typo.
257 * DbDataAdapter.cs : column mappings were not filled.
259 2004-06-24 Atsushi Enomoto <atsushi@ximian.com>
261 * DataTableMapping.cs : Clone() should also clone ColumnMappings.
263 2004-06-18 Umadevi S <sumadevi@novell.com>
264 * DataContainer.cs - CheckedforNull before calling the relavant setmethods in each of the
265 SetItemForDataRecord method for all the classes.
267 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
268 * RecordCache.cs : Added CopyRecord mathod that copies single record from one table to another.
270 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
272 - Store and retreival of null and DBNull values reviewed.
273 - Added GetInt64 to support AutoIncrement of DataColumn.
274 - Added missing CopyValue method to BitDataContainer.
275 - Added FillValues method to propagate single value to whole container.
277 2004-06-10 Umadevi S <sumadevi@novell.com>
278 * DataTableMappingCollection.cs - fixed nunit testcase errors
279 IndexOfDataSetTable method
281 2004-06-09 Umadevi S <sumadevi@novell.com>
282 * DataTableMappingCollection.cs - fixed nunit testcase errors
283 - Add, GetByDataSetTable,Insert, Remove, RemoveAt methods.
285 2004-06-09 Umadevi S <sumadevi@novell.com>
286 * DataColumnMappingCollection.cs - fixed nunit testcase errors
287 - GetByDataSetColumn,IndexOfDataSetColumn, Remove methods.
289 2004-06-08 Umadevi S <sumadevi@novell.com>
290 * DataColumnMappingCollection.cs - fixed nunit testcase errors.
291 - remove, removeat, contains methods.
293 2004-06-04 Gert Driesen <drieseng@users.sourceforge.net>
295 * DataAdapter.cs: added missing protected ctor
296 * DbDataAdapter.cs: added stub for missing protected ctor
297 * DbDataPermission.cs: added stubs for missing protected
298 ctors, added stub for missing Clear method
300 2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
301 * DataColumnMappingCollection.cs: added missing attributes on
304 2004-05-27 Boris Kirzner <borisk@mainsoft.com>
305 * DataContainer.cs : Bug fixes in BitDataContainer.get_Item and StringDataContainer.SetValue .
307 2004-05-20 Gert Driesen (drieseng@users.sourceforge.net)
309 * DbDataPermissionAttribute.cs: change AllowMultiple and
310 Inherited to match .NET
312 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
313 * Datacontainer.cs : CompareValues reviewed. set_Item and get_Item of null and DBNull values in case of DataContainers
314 for primitive types reviewed. Added check for null values when reading from IDataRecord.
316 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
317 * RecordCache.cs - added. Each instance of record cache belongs to specific table
318 and manages pool of records ( indexes into data containers) to be used by data rows.
319 * DataContainer.cs - added. Provides implementation for data containers that holds data in arrays
320 of primitives or objects. Each data container belongs to specific DataColumn.
321 * DbDataAdapter.cs - changes to complete data storage redesign. Bug fix in FillTable
322 ( to fetch exact number of records required ).
324 2004-05-13 Umadevi S (sumadevi@novell.com)
325 * DbDataPermissionAttribute.cs - Added KeyRestrictions property with a TODO tag
327 2004-05-09 Gert Driesen (drieseng@users.sourceforge.net)
328 * ComparerFactory.cs: marked internal
330 2003-04-26 Boris Kirzner <borisk@mainsoft.com>
331 * DataColumnMappingCollection.cs : Small fix in exception message thrown.
333 2003-04-25 Boris Kirzner <borisk@mainsoft.com>
334 * DbDataAdapter.cs : Fixed bug in Fill :
335 - Reader can have empty results (fo example from UPDATE or DELETE).
336 - Reader can have results with no rows (SELECT that returns 0 rows but have columns)
337 - In FillTable - skip rows only once for each table.
339 2003-04-14 Juraj Skripsky <juraj@hotfeet.ch>
340 * DbDataAdapter.cs : Refactoring of Fill. New private method
341 FillTable does most of the work now. Use int[] instead of
342 hashtable for mapping. Move creation of tableArray[] outside
345 2004-03-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
347 * DbDataPermissionAttribute.cs: Added .Net 1.1 marks
348 * DataColumnMapping.cs: DO NOT USE the consts scheme if types can be referenced directly!
349 * DataTableMapping.cs: DO NOT USE the consts scheme if types can be referenced directly!
350 * DataColumnMappingConverter: Added stub
351 * DataTableMappingConverter: Added stub
353 2004-03-03 Eran Domb <erand@miansoft.com>
355 * ComparerFactory.cs : Added.
357 2004-01-10 Atsushi Enomoto <atsushi@ximian.com>
359 * DbDataPermission.cs : tiny fix to pass OleDbPermission.
361 2004-01-09 Atsushi Enomoto <atsushi@ximian.com>
363 * DbDataPermission.cs : .ctor(PermissionState state) should not call
364 obsolete .ctor(state, allowBlankPassword). csc reports an error.
366 2003-12-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
368 * DbDataAdapter.cs: handle MissingShemaAction.AddWithKey, call
369 AcceptChanges in Update when a CommandBuilder is used and
370 correctly fill information about primary keys in FillSchema.
371 Patch from Sergei Malinin (smalinin@amurnet.ru).
373 2003-12-23 Tim Coleman <tim@timcoleman.com>
374 * DbConnectionString.cs:
376 * DbProviderFactory.cs:
377 Fix typo to make CLS compliant
379 2003-12-16 Jackson Harper <jackson@ximian.com>
381 * SchemaTableOptionalColumn.cs: Add to fix default build
383 2003-12-16 Tim Coleman <tim@timcoleman.com>
384 * CatalogLocation.cs DbCommand.cs DbCommandBuilder.cs
385 * DbCommandOptionalFeatures.cs DbCommandSet.cs DbConnection.cs
386 * DbConnectionString.cs DbDataSourceEnumerator.cs
387 * DbDataUpdatableRecord.cs DbParameter.cs DbParameterCollection.cs
388 * DbProviderConfigurationHandler.cs DbProviderFactories.cs
389 * DbProviderFactoriesConfigurationHandler.cs DbProviderFactory.cs
390 * DbProviderSupportedClasses.cs DbTable.cs DbTransaction.cs
391 * GroupByBehavior.cs IdentifierCase.cs SchemaLocation.cs
392 * SchemaTableColumn.cs:
393 New stubs added for .NET 1.2
394 * DataAdapter.cs DataColumnMapping.cs DataColumnMappingCollection.cs
395 * DataTableMapping.cs DataTableMappingCollection.cs DbDataAdapter.cs
396 * DbDataPermission.cs DbDataPermissionAttribute.cs DbDataRecord.cs
397 * FieldNameLookup.cs SchemaInfo.cs:
398 Changes made for .NET 1.2
400 2003-10-22 Eran Domb <erand@miansoft.com>
401 * DbDataAdapter.cs : Check if there is mapping to avoid exception.
403 2003-11-26 Tim Coleman <tim@timcoleman.com>
404 * DbDataReader.cs: Add new stub class
406 2003-11-23 Pedro Martínez Juliá <yoros@wanadoo.es>
408 * DbDataAdapter.cs: Call command dispose in self dispose method. We
409 need to dispose the connections and other stuff stored in the
412 2003-11-10 Pedro Martínez Juliá <yoros@wanadoo.es>
414 * DataColumnMappingCollection.cs: Fix a missing exception when the
415 required mapping is not in the collection. MS.NET throws an
418 2003-10-22 Eran Domb <erand@miansoft.com>
420 * DbDataAdapter.cs (Fill): add only the mapped column to the dataTable (not all columns of dataReader).
421 Also closing the dataReader if an exception is thrown.
422 (Fill): the same as above.
423 (SetupSchema): in now return string (the table name).
424 (GetFillParameters): fix a bug.
425 (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.
426 (Update): first open the connection if needed. Catch an exception of the ExecuteQuery.
429 2003-09-30 Duncan Mak <duncan@ximian.com>
431 Patch from Eran Domb <eran@mainsoft.com>.
433 * DbDataAdapter.cs (Fill): Fixed an Exception from being thrown.
435 2003-09-25 Duncan Mak <duncan@ximian.com>
437 * DbDataAdapter.cs (Fill): Patch from Eran Domb, <eran@mainsoft.com>.
438 Fixes a possible NullReferenceException, more details here:
440 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002116.html
442 2003-09-21 eran <erand@mainsoft.com>
444 * DbDataRecord.cs: The method
445 System.Data.Common.DbDataRecord.GetValues(object[] values) did not
446 put the values of the DbDataRecord into values parameter.
448 2003-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
450 * DbDataAdapter.cs: provide a Type for ToArray to avoid invalid cast
451 exception. Thanks to Mark Easton <measton@tebiki.co.uk>.
453 2003-07-31 Duncan Mak <duncan@ximian.com>
455 * DataAdapter.cs (CloneInternals): Mark with ObsoleteAttribute for
458 2003-03-21 Alan Tam <Tam@SiuLung.com>
460 * DbDataAdapter.cs: Update now uses correct DataRowVersion
461 when accessing the data.
463 2003-03-17 Aleksey Demakov <avd@openlinksw.com>
465 * DbDataAdapter.cs: BuildSchema now uses ColumnName instead
466 of BaseColumnName (bug #39830) for DataColumn names.
467 BaseTableName is no longer taken into account as well.
469 2003-02-28 Aleksey Demakov <avd@openlinksw.com>
471 * DbDataAdapter.cs: Update (DataSet) updates the default
474 2003-02-25 Alan Tam <Tam@SiuLung.com>
476 * DbDataAdapter.cs: Added support for filling when schema is present.
477 Fixed incorrect behavior when ColumnMapping is present
478 when more than one fields have the same name. Implemented Dispose.
479 Fixed error when there is no ColumnMapping at all.
480 Still have some problems in finding the correct TableMapping
481 because the SourceTable name is not present in BuildSchema
483 2003-02-24 Aleksey Demakov <avd@openlinksw.com>
485 * DbDataAdapter.cs: The original code might pass a null DataTableMapping
486 value which is then used to create a RowUpdatingEventArgs
487 instance. So RowUpdatingEvent handler (for instance
488 CommandBuilder) could get null DataTableMapping which
489 might be unexpected. The patch makes sure that a non-null
490 DataTableMapping is passed.
492 2003-01-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
494 * DbEnumerator.cs: why does the runtime throw an invalid cast here? The
495 object is an Int16... Gotta fill a bug report and when fixed undo this
498 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
500 * DbDataRecord.cs: return DbNull.Value in GetValue () if value is null.
502 2002-10-31 Daniel Morgan <danmorg@sc.rr.com>
504 * SchemaInfo.cs: added missing properties to fix mcs build
506 2002-05-05 Miguel de Icaza <miguel@ximian.com>
508 * DataTableMapping.cs, DataTableMappingCollection.cs: comment out
509 interfaces we do not implement yet.
511 * DbDataAdapter.cs: Stub IEnumerable, comment out interfaces
512 we do not implement yet.
514 * DbDataPermissionAttribute.cs: call base constructor.