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