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