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