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