start populating the new System.Web.Configuration_2.0 dir
[mono.git] / mcs / class / System.Data / System.Data.Common / ChangeLog
1 2005-10-24  Konstantin Triger <kostat@mainsoft.com>
2
3         * DataContainer.cs: removed extra type validation for object container
4
5 2005-10-14  Senganal T  <tsenganal@novell.com>
6
7         * DbDataAdapter.cs : 
8                 - BuildSchema() : Set the value of DataColumn Property 'AllowDBNull'
9                 as returned by database. Fixes bug#76433. 
10
11 2005-09-21 Boris Kirzner <borisk@mainsoft.com>
12         * Index.cs: 
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.
16         * Key.cs:
17                 - Added HasFilter property, CanContain and DependsOn methods.
18                 - Equals() uses filter expression comparison.           
19
20 2005-09-07 Boris Kirzner <borisk@mainsoft.com>
21         * DataContainer.cs: Do not convert value if container type 
22         is System.Object.
23
24 2005-08-08  Gert Driesen  <drieseng@users.sourceforge.net>
25
26         * DbTypes.cs: Marked internal to fix public API.
27
28 2005-08-05  Sureshkumar T  <tsureshkumar@novell.com>
29
30         * DbDataAdapter.cs:
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.
35
36 2005-07-22  Sureshkumar T  <tsureshkumar@novell.com>
37
38         * DataColumnMappingCollection.cs: updated attributes & attribute
39         descriptions to match with masterinfos.
40
41 2005-07-15  Sureshkumar T  <tsureshkumar@novell.com>
42
43         * DataTableMappingCollection.cs: GetTableMappingBySchemaAction:
44         meaningful error message if mapping is missing.
45
46         * DbDataAdapter.cs: Update: meaningful message if table is missing.
47
48 2005-06-22  Sureshkumar T  <tsureshkumar@novell.com>
49
50         * Index.cs: Remove : length for Array.Copy (a, i+1, a, i, length -
51         (i+1)) corrected.
52
53 2005-06-21  Sureshkumar T  <tsureshkumar@novell.com>
54
55         * DbConnectionStringBuilder.cs: Implemented method for parsing
56         connection string through "ConnectionString" property.
57
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
61         well.
62
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.
68         
69 2005-05-25 Konstantin Triger <kostat@mainsoft.com>
70
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
72
73 2005-05-20 Umadevi S <sumadevi@novell.com>
74         * Added file DbProviderSpecificTypePropertyAttribute.cs
75
76 2005-05-19 Umadevi S <sumadevi@novell.com>
77
78         * RowUpdatingEventArgs.cs - added BaseCommand property for net 2.0
79
80 2005-05-18 Konstantin Triger <kostat@mainsoft.com>
81
82         * DbDataAdapter.cs: Initialize the schema values to defaults if the schema does not contain the information
83
84 2005-05-16  Sureshkumar T  <tsureshkumar@novell.com>
85
86         * RecordCache.cs: quick fix to make build 2.0 profile (follow up
87         for check in 2005-05-16).
88
89 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
90
91         * Index.cs: validation that the updated row belongs to the index
92
93 2005-05-02 Konstantin Triger <kostat@mainsoft.com>
94
95         * DataContainer.cs: 
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
99         
100         * DbDataAdapter.cs:
101                 Ensure correct order for LoadDataRow
102                 Fixing schema creation
103                 Use NewRowArray API
104         
105         * DbEnumerator.cs:
106                 LoadSchema: Retrieve needed fields only
107         
108         * RecordCache.cs:
109                 Added Rows-to-Records mapping
110                 Added ReadIDataRecord method for correct handling of default/auto increment values
111         
112         * Added Index.cs: Index implementation
113         * Added Key.cs: Index descriptor implementation
114
115
116 2005-04-27  Sureshkumar T  <tsureshkumar@novell.com>
117
118         * DbDataReader.cs: Added static method to construct the schema
119         table with default schema. Could be reused in many places.
120
121 2005-04-22  Sureshkumar T  <tsureshkumar@novell.com>
122
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.
126
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.
131
132 2005-04-18  Sureshkumar T  <tsureshkumar@novell.com>
133
134         * DataAdapter.cs: Implemenetd OnFillError handler.
135
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.
139
140 2005-03-24  Sureshkumar T  <tsureshkumar@novell.com>
141
142         * DbDataAdapter.cs: Update: If  SourceColumn is null, do not set
143         value for the parameter.
144
145 2005-05-25 Umadevi S <sumadevi@novell.com>
146         * Added DbException.cs
147
148 2005-03-23  Sureshkumar T  <tsureshkumar@novell.com>
149
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).
153
154 2005-03-22  Sureshkumar T  <tsureshkumar@novell.com>
155
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.
161
162         * RowUpdatedEventArgs.cs: if custom error is not set, throw a
163         default error.
164
165 2005-03-01  Sureshkumar T  <tsureshkumar@novell.com>
166
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.
170
171 2005-02-04  Sureshkumar T  <tsureshkumar@novell.com>
172
173         * DbDataAdapter.cs (Update ()) :
174         - Check for one return result set and map the values back to
175           datatable.
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.
179
180 2005-02-02  Sureshkumar T  <tsureshkumar@novell.com>
181
182         * DbConnection.cs: Implement Dispose pattern.
183
184 2005-01-25  Atsushi Enomoto  <atsushi@ximian.com>
185
186         * DbDataPermission.cs : Empty.Union(Empty) is Empty.
187
188 2005-01-14  Atsushi Enomoto  <atsushi@ximian.com>
189
190         * DbDataPermissionAttribute.cs, PermissionHelper.cs :
191           fixed some incompatible type of exception between 2.0 and 1.x.
192         * DataContainer.cs :
193           Wrap exceptions thrown by SetValue() within ArgumentException.
194
195 2004-12-10  Sureshkumar T  <tsureshkumar@novell.com>
196
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.
200
201 2004-11-24  Sureshkumar T  <tsureshkumar@novell.com>
202
203         * DbProviderSupportedClasses.cs: Added correct enum values.
204         * DbConnection.cs: Missing virtual method EnlistTransaction Added.
205         * DbCommand.cs: Implemented ProviderFactory base factory methods.
206
207 2004-11-22  Sureshkumar T  <tsureshkumar@novell.com>
208
209         * DbConnectionStringBuilder.cs: Class for helping creation of db
210         connection strings added.
211
212 2004-10-01  Sureshkumar T  <tsureshkumar@novell.com>
213
214         * DbProviderFactories.cs: Implemented all the stubs. Added functionality for
215         getting available provider factories and creating a specified provider factory.
216
217         * DbProviderFactoriesConfigurationHandler.cs: Added functionality for handling
218         DbProviderFactories configuration section.
219
220         * DbProviderFactory.cs: Added protected constructor. SupportedClasses property
221         is made abstract.
222
223 2004-09-14  Sebastien Pouliot  <sebastien@ximian.com>
224
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).
231
232 2004-09-13  Sebastien Pouliot  <sebastien@ximian.com>
233
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.
242
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.
245
246 2004-07-21 Umadevi S <sumadevi@novell.com>
247         * DbDataRecord.cs - Fix for bug 58163. Return DBNull instead of null
248
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
252
253
254 2004-06-24  Atsushi Enomoto  <atsushi@ximian.com>
255
256         * DataColumnMappingCollection.cs : fixed typo.
257         * DbDataAdapter.cs : column mappings were not filled.
258
259 2004-06-24  Atsushi Enomoto  <atsushi@ximian.com>
260
261         * DataTableMapping.cs : Clone() should also clone ColumnMappings.
262
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.
266
267 2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
268         * RecordCache.cs : Added CopyRecord mathod that copies single record from one table to another.
269
270 2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
271         * Datacontainer.cs : 
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.
276         
277 2004-06-10 Umadevi S <sumadevi@novell.com>
278         * DataTableMappingCollection.cs - fixed nunit testcase errors
279         IndexOfDataSetTable method
280
281 2004-06-09 Umadevi S <sumadevi@novell.com>
282         * DataTableMappingCollection.cs - fixed nunit testcase errors
283         - Add, GetByDataSetTable,Insert, Remove, RemoveAt methods.
284
285 2004-06-09 Umadevi S <sumadevi@novell.com>
286         * DataColumnMappingCollection.cs - fixed nunit testcase errors
287         - GetByDataSetColumn,IndexOfDataSetColumn, Remove methods.      
288
289 2004-06-08 Umadevi S <sumadevi@novell.com>
290         * DataColumnMappingCollection.cs - fixed nunit testcase errors.
291         - remove, removeat, contains methods.
292
293 2004-06-04  Gert Driesen <drieseng@users.sourceforge.net>
294
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
299
300 2004-06-02  Gert Driesen <drieseng@users.sourceforge.net>
301        * DataColumnMappingCollection.cs: added missing attributes on
302        indexers
303
304 2004-05-27  Boris Kirzner  <borisk@mainsoft.com>
305         * DataContainer.cs : Bug fixes in BitDataContainer.get_Item and StringDataContainer.SetValue .
306
307 2004-05-20  Gert Driesen (drieseng@users.sourceforge.net)
308
309         *  DbDataPermissionAttribute.cs: change AllowMultiple and
310         Inherited to match .NET
311
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.
315         
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 ).
323         
324 2004-05-13 Umadevi S (sumadevi@novell.com)
325         * DbDataPermissionAttribute.cs - Added KeyRestrictions property with a TODO tag
326
327 2004-05-09  Gert Driesen (drieseng@users.sourceforge.net)
328         * ComparerFactory.cs: marked internal
329
330 2003-04-26  Boris Kirzner <borisk@mainsoft.com>
331         * DataColumnMappingCollection.cs : Small fix in exception message thrown.
332           
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.
338         
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
343         of loop.
344
345 2004-03-12  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
346
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
352
353 2004-03-03  Eran Domb  <erand@miansoft.com>
354         
355         * ComparerFactory.cs : Added.
356         
357 2004-01-10  Atsushi Enomoto  <atsushi@ximian.com>
358
359         * DbDataPermission.cs : tiny fix to pass OleDbPermission.
360
361 2004-01-09  Atsushi Enomoto  <atsushi@ximian.com>
362
363         * DbDataPermission.cs : .ctor(PermissionState state) should not call
364           obsolete .ctor(state, allowBlankPassword). csc reports an error.
365
366 2003-12-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
367
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).
372
373 2003-12-23  Tim Coleman <tim@timcoleman.com>
374         * DbConnectionString.cs:
375                 Some implementation
376         * DbProviderFactory.cs:
377                 Fix typo to make CLS compliant
378
379 2003-12-16  Jackson Harper <jackson@ximian.com>
380
381         * SchemaTableOptionalColumn.cs: Add to fix default build
382         
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
399
400 2003-10-22  Eran Domb  <erand@miansoft.com>
401         * DbDataAdapter.cs : Check if there is mapping to avoid exception.
402
403 2003-11-26  Tim Coleman <tim@timcoleman.com>
404         * DbDataReader.cs: Add new stub class
405
406 2003-11-23  Pedro Martínez Juliá  <yoros@wanadoo.es>
407
408         * DbDataAdapter.cs: Call command dispose in self dispose method. We
409         need to dispose the connections and other stuff stored in the
410         commands.
411
412 2003-11-10  Pedro Martínez Juliá  <yoros@wanadoo.es>
413
414         * DataColumnMappingCollection.cs: Fix a missing exception when the
415         required mapping is not in the collection. MS.NET throws an
416         exception there.
417
418 2003-10-22  Eran Domb  <erand@miansoft.com>
419
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.
427         
428
429 2003-09-30  Duncan Mak  <duncan@ximian.com>
430
431         Patch from Eran Domb <eran@mainsoft.com>.
432         
433         * DbDataAdapter.cs (Fill): Fixed an Exception from being thrown.
434
435 2003-09-25  Duncan Mak  <duncan@ximian.com>
436
437         * DbDataAdapter.cs (Fill): Patch from Eran Domb, <eran@mainsoft.com>.
438         Fixes a possible NullReferenceException, more details here:
439
440         http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002116.html
441
442 2003-09-21  eran <erand@mainsoft.com>
443
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.
447
448 2003-08-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
449
450         * DbDataAdapter.cs: provide a Type for ToArray to avoid invalid cast
451         exception. Thanks to Mark Easton <measton@tebiki.co.uk>.
452
453 2003-07-31  Duncan Mak  <duncan@ximian.com>
454
455         * DataAdapter.cs (CloneInternals): Mark with ObsoleteAttribute for
456         NET_1_1.
457
458 2003-03-21  Alan Tam <Tam@SiuLung.com>
459
460         * DbDataAdapter.cs: Update now uses correct DataRowVersion
461         when accessing the data.
462
463 2003-03-17  Aleksey Demakov <avd@openlinksw.com>
464
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.
468
469 2003-02-28  Aleksey Demakov <avd@openlinksw.com>
470
471         * DbDataAdapter.cs: Update (DataSet) updates the default
472         table only.
473
474 2003-02-25  Alan Tam <Tam@SiuLung.com>
475         
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
482
483 2003-02-24  Aleksey Demakov <avd@openlinksw.com>
484
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.
491
492 2003-01-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
493
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
496         patch.
497
498 2003-01-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
499
500         * DbDataRecord.cs: return DbNull.Value in GetValue () if value is null.
501
502 2002-10-31  Daniel Morgan <danmorg@sc.rr.com>
503
504         * SchemaInfo.cs: added missing properties to fix mcs build
505
506 2002-05-05  Miguel de Icaza  <miguel@ximian.com>
507
508         * DataTableMapping.cs, DataTableMappingCollection.cs: comment out
509         interfaces we do not implement yet.
510
511         * DbDataAdapter.cs: Stub IEnumerable, comment out interfaces
512         we do not implement yet.
513
514         * DbDataPermissionAttribute.cs: call base constructor.
515