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