copying the latest Sys.Web.Services from trunk.
[mono.git] / mcs / class / System.Data / System.Data.Odbc / ChangeLog
1 2005-04-05  Sureshkumar T  <tsureshkumar@novell.com>
2
3         * OdbcParameter.cs: SqlBindParameter requires the last parameter
4         to be a ref.
5         * libodbc.cs: API change for above.
6
7 2005-04-04  Sureshkumar T  <tsureshkumar@novell.com>
8
9         * OdbcDataReader.cs: Ignore BaseTableName & BaseColumnName
10         properties while building Schema information as most drivers
11         ignores these properties. e.g. PostgreSQL.
12
13 2005-03-24  Sureshkumar T  <tsureshkumar@novell.com>
14             Appasamy <appasamy@rediffmail.com>
15
16         * OdbcColumn.cs: IsStringType: OdbcType.Char is also of type
17         String.
18         * OdbcDataReader.cs: GetSchemaTable: Get Additional info using
19         SQLColAttribute. Don't pad with spaces in GetColAttributeStr.
20
21 2005-03-24  Sureshkumar T  <tsureshkumar@novell.com>
22
23         * OdbcDataReader.cs:
24         - GetValue: Decode only outsize length for SQL_C_TYPE.CHAR type in
25         SQLGetData.
26         - GetOrdinal: Perform case insensitive lookup if sensitive lookup
27         fails.
28
29 2005-03-22  Sureshkumar T  <tsureshkumar@novell.com>
30             Appsamy <appasamy@rediffmail.com>
31
32         * libodbc.cs (System.Data.Odbc): Added enum FieldIdentifier. Added
33         library functions SQLPrimaryKeys, SQLBindCol and SQLColAttribute.
34
35         * OdbcDataReader.cs: Implemented GetPrimaryKeys to get the primary
36         keys associated with resultset using SQLPrimaryKeys.
37
38 2005-03-15  Sureshkumar T  <tsureshkumar@novell.com>
39
40         * OdbcConnection.cs: re-throw error on exception in Open method.
41
42 2005-03-11  Sureshkumar T  <tsureshkumar@novell.com>
43
44         * OdbcConnection.cs : notify state change through event. clean up
45         handles in case any exception while opening a connection. NET_2_0
46         uses base class's OnStateChange handler.
47
48 2005-03-10  Sureshkumar T  <tsureshkumar@novell.com>
49
50         Migrated core classes to derive from ProviderBase instead of
51         implementing IDb* interfaces. Most part of these files have been
52         branched with #if NET_2_0/ONLY_1_1. Make sure any changes works
53         with both the profiles.
54
55         * OdbcFactory.cs: Concrete Factory for DbProviderFactory. Factory
56         to generate Connection,Command,etc.
57
58         * OdbcConnectionFactory.cs: Concrete factory for DbConnectionFactory.
59
60         * OdbcTransaction.cs: migration and overrides.
61         * OdbcCommandBuilder.cs: migration and overrides.
62         * OdbcDataReader.cs: --do--. no command behavior member as it will
63         be maintained in base provider class.
64         * OdbcParameterCollection.cs: --do--. Now, local ArrayList is not
65         maintained here, instead it is in base class. Most of the methods
66         which operated on this list are not needed in NET_2_0.
67         * OdbcConnection.cs: Migration. connectionString is maintained in
68         DbConnectionBase class.
69         * OdbcParameter.cs: Migration. Many of the local members like
70         value,sourceColumn are maintained in DbParameterBase.
71         * OdbcCommand.cs: Migration. commandText,timeout and
72         commandTimeOut are maintained in DbCommandBase class.
73
74 2005-03-10  Sureshkumar T  <tsureshkumar@novell.com>
75
76         * OdbcType.cs: Added enums for SQL_TYPE & SQL_C_TYPE.
77         
78         * libodbc.cs: Accept SQL_C_TYPE for driver
79         parameters. SQLBindParameter takes two parameters SQL_TYPE and
80         SQL_C_TYPE. This caused the whole lot of changes done in this
81         revision.
82         
83         * OdbcParameter.cs: Set default values of OdbcType & DbType. Pass
84         mapped SQL_TYPE and SQL_C_TYPE to SQLBindParameter. Increase
85         buffer size by 2 for additional ' chars.
86         
87         * OdbcTypeConverter.cs: Added class to convert between OdbcType,
88         SQL_TYPE, SQL_C_TYPE.
89         
90         * OdbcColumn.cs: Added private members for SQL_TYPE and
91         SQL_C_TYPE. conversion from/to odbctype to/from SQL_TYPE is done
92         through OdbcTypeConverter class.
93         
94         * OdbcDataReader.cs: use OdbcColumn's SQL_C_TYPE member. It keeps
95         track of default mapping between odbctype, SQL_TYPE and
96         SQL_C_TYPE. Move dataTableSchema.AcceptChanges inside if condition
97         to avoid null reference exception.
98
99 2005-02-04  Sureshkumar T  <tsureshkumar@novell.com>
100             Appasamy <appasamy@rediffmail.com>
101
102         * OdbcConnection.cs: Implemented properties database, datasource,
103         serverversion and driver.
104         * libodbc.cs: Added type OdbcInfo and native call SQLGetInfo.
105
106 2005-01-20  Sureshkumar T  <tsureshkumar@novell.com>
107
108         * OdbcDataReader.cs: case for type OdbcType.Double added in
109         GetValue.  fixes bug #71173.
110
111         Thanks to patch given by "Appasamy T" <appasamy@rediffmail.com>
112
113 2005-01-19  Sureshkumar T  <tsureshkumar@novell.com>
114
115         * OdbcType.cs: Change enum values for compatiability with MS.NET.
116         * libodbc.cs: Change enum values for compatiability with
117         MS.NET. Change calls into driver with native type.
118         * OdbcDataReader.cs: Change enum values for compatiability with
119         MS.NET. Change calls from/into driver with native type.
120
121 2005-01-18  Sureshkumar T  <tsureshkumar@novell.com>
122
123         * OdbcDataReader.cs: GetOrdinal need not check for
124         currentRow. Return -1 if column name is not found.
125
126         fixes bug #71261. Thanks to patch given by "Appasamy T"
127         <appasamy@rediffmail.com>.
128
129 2005-01-13  Sureshkumar T  <tsureshkumar@novell.com>
130
131         * OdbcDataReader.cs: Implement NextResultSet for multiple result
132         set queries. 
133         
134         * OdbcDataReader.cs: build column schema once creating reader and
135         then for each Next result set. Thanks to
136         sebastien.robitaille@croesus.com (Sebastien Robitaille) for
137         pointing out this optimization (bugzilla #70530).
138
139         * libodbc.cs: Added library calls SQLFreeStmt and SQLMoreResults
140         for mutiple resultsets.
141
142 2005-01-10  Sureshkumar T  <tsureshkumar@novell.com>
143
144         * OdbcDataReader.cs: Connection has to be closed only after
145         Statement handle is freed. fixes bug #70048.
146
147 2005-01-07  Sureshkumar T  <tsureshkumar@novell.com>
148
149         * OdbcDataReader.cs: Pass OdbcCType.SignedBigInt for accessing big
150         int columns.
151
152         * OdbcType.cs: Added a new enum for Odbc C DataTypes. This should
153         essentially be passed to drivers, since the public OdbcType types
154         differs from types expected in drivers in some cases.
155
156         * libodbc.cs : Added a ODBC method which takes OdbcCType
157         enumeration for SQLGetData for BigInt fields.
158
159         fixes bug #65342.
160
161 2004-12-28  Duncan Mak  <duncan@ximian.com>
162
163         * libodbc.cs: Change all the DllImport attributes to point to
164         "odbc32.dll" instead of "odbc32", because /etc/mono/config lists
165         "odbc32.dll" (all other entries in the file have the .dll suffix
166         as well, for consistency's sake, let's rename it here.)
167
168         This fixes #70727.
169         
170 2004-12-03  Sureshkumar T  <tsureshkumar@novell.com>
171
172         * OdbcParameter.cs: Fixed a null reference exception when a
173         parameter is created and its value is not set. #68750.
174
175 2004-11-26  Sureshkumar T  <tsureshkumar@novell.com>
176
177         * OdbcParameter.cs: Fixed Parameter Size property as well as
178         insufficient buffer errors. bug #68749.
179
180 2004-09-14  Sebastien Pouliot  <sebastien@ximian.com>
181
182         * OdbcPermission.cs: Added internal constructor accepting an Odbc
183         PermissionAttribute parameter (using base class protected ctor).
184         * OdbcPermissionAttribute.cs: Copy now use the new OdbcPermission
185         constructor.
186
187 2004-09-13  Sebastien Pouliot  <sebastien@ximian.com>
188
189         * OdbcPermission.cs: Mostly completed (needs tests).
190         * OdbcPermissionAttribute.cs: Completed.
191
192 2004-08-31 Umadevi S (sumadevi@novell.com)
193         * OdbcDataReader.cs - Fixed Decimal parsing
194
195 2004-08-30 Umadevi S (sumadevi@novell.com)
196         * OdbcType.cs - removed inheritance from short.
197
198 2004-08-27 Sureshkumar T (tsureshkumar@novell.com)
199         * OdbcDataReader.cs - fixed bug #63539 - TINYINT ODBC datatype is converted into System.Byte
200
201 2004-08-26 Sureshkumar T (tsureshkumar@novell.com)
202         * OdbcDataReader.cs - Date & DateTime GetValue fixed. 
203                               GetBytes ordinal parameter passing fixed for BINARY in GetValue.
204
205 2004-08-20 Sureshkumar T (tsureshkumar@novell.com)
206         * OdbcConnection.cs - correct handles are passed to OdbcError exception to trap the correct error
207
208 2004-08-04 Umadevi S (sumadevi@novell.com)
209         * OdbcDataReader.cs - Fixed bug 61832 - Column names were not filled, due to which name based lookup of columns failed.
210                                                                                                   
211
212 2004-08-04 Umadevi S (sumadevi@novell.com)
213         * OdbcDataReader.cs - Fixed bug 61405 - Handling smallint column type.
214
215 2004-07-30  Sureshkumar T (tsureshkumar@novell.com)
216         * OdbcCommand.cs: ExecuteNonQuery Closed statement handle to fix memory leak
217         * OdbcDataReader.cs: Closed statement handle to fix memory leak
218                              Removed SQLState login in GetBytes coz OdbcError provides the same.
219                                     
220 2004-07-29 Umadevi S (sumadevi@novell.com)
221         * OdbcCommand.cs - Fixed bug 62046. ExecuteNonQuery implemented correctly
222                                                                                                     
223
224 2004-07-28 Umadevi S (sumadevi@novell.com)
225         * OdbcParameter.cs - fixed bug 61968. String values passed with quotes
226                                                                                                  
227
228 2004-07-07 Umadevi S (sumadevi@novell.com)
229         * OdbcConnection.cs - Allowed Close to be called multiple times
230                             - Implementation of Dispose method
231
232 2004-07-07 Umadevi S (sumadevi@novell.com)
233         * OdbcCommand.cs : fixed set method for Transaction
234                                                           
235 2004-07-01  Sureshkumar T (tsureshkumar@novell.com)
236         * OdbcCommand.cs   : fixed reader problem with ExecuteScalar
237
238 2004-06-23  Sureshkumar T (tsureshkumar@novell.com)
239         * OdbcConnection.cs: Fix: Moved env allocation to Open method. 
240                              Disconnection & freeing handles are done in Close 
241                              method to avoid simultaneous connections.
242         * libodbc.cs       : Added constants for odbc version.
243                                     
244 2004-06-16  Gert Driesen <drieseng@users.sourceforge.net>
245
246         * OdbcError.cs: fixed serialization compatibility with MS.NET
247         * OdbcErrorCollection.cs: fixed serialization compatibility with
248         MS.NET
249         * OdbcException.cs: fixed serialization compatibility with MS.NET
250
251 2004-06-16  Sureshkumar T (tsureshkumar@novell.com)
252         * OdbcDataReader.cs: Added GetValue support for Sql Binary type to return byte array.
253                              Implemented GetBytes method.
254         * libodbc.cs       : Added enums, constants & imports for above fix.
255
256 2004-06-13  Gert Driesen <drieseng@users.sourceforge.net>
257
258         * OdbcDataReader.cs: changed GetData method to return IDataReader
259         to match MS.NET
260
261 2004-06-09  Sureshkumar T (tsureshkumar@novell.com)
262         * OdbcDataReader.cs: Removed checking of currentRow in GetName
263           method
264
265 2004-06-04  Gert Driesen <drieseng@users.sourceforge.net>
266
267         * OdbcPermission.cs: moved Obsolete attribute to correct
268         ctor
269
270 2004-06-02  Sureshkumar T (tsureshkumar@novell.com)
271        
272         * OdbcDataReader.cs: Implemented GetByte method. Fixed bug #58820
273
274 2004-06-02  Gert Driesen <drieseng@users.sourceforge.net>
275
276         * OdbcParameter.cs: added missing attributes
277         * OdbcPermission.cs: added missing attributes
278         * OdbcConnection.cs: fixes attribute, added missing attributes
279         * OdbcInfoMessageEventArgs.cs: removed extra properties, fixed
280         API compatibility with MS.NET
281         * OdbcCommandBuilder.cs: use correct attributes
282
283 2004-05-20  Gert Driesen (drieseng@users.sourceforge.net)
284
285         *  OdbcPermissionAttribute.cs: change AllowMultiple and
286         Inherited to match .NET
287
288 2004-05-17 Umadevi S (sumadevi@novell.com)
289         * OdbcPermissionAttribute, OdbcPermission.cs - fixed missing methods
290
291 2004-05-17 Gert Driesen (drieseng@users.sourceforge.net)
292         * OdbcCategoryAttribute.cs: fixed namespace
293         * OdbcDataAdapter.cs: removed extra attributes
294         * OdbcDescriptionAttribute.cs: fixed namespace
295
296 2004-05-14 Umadevi S (sumadevi@novell.com)
297         * OdbcParameterConverter.cs -Added 
298         * OdbcParameter.cs - Added some attributes      
299
300 2004-05-14 Umadevi S (sumadevi@novell.com)
301         * OdbcDataAdapter.cs - Added Attributes
302
303 2004-05-14 Umadevi S (sumadevi@novell.com)
304         * OdbcConnection.cs - Added Attributes
305
306 2004-05-14 Umadevi S (sumadevi@novell.com)
307         * OdbcCommand.cs - Added Attributes
308
309 2004-05-14 Umadevi S (sumadevi@novell.com)
310         * OdbcDataReader.cs - Added Attributes
311
312 2004-05-14 Umadevi S (sumadevi@novell.com)
313         * Added Classes OdbcCategoryAttribute.cs, OdbcDescriptionAttribute.cs
314
315 2004-05-14 Umadevi S (sumadevi@novell.com)
316         * Added Class OdbcCommandBuilder.cs
317
318 2004-05-14 Umadevi S (sumadevi@novell.com)
319         * Added classes OdbcInfoMessageEventArgs.cs - with stubs
320         * Added classes OdbcInfoMessageEventInfo.cs     
321
322 2004-05-14 Umadevi S (sumadevi@novell.com)
323         * Added classes OdbcPermission.cs, OdbcPermissionAttribute.cs - with stubs
324
325 2004-05-09  Gert Driesen (drieseng@users.sourceforge.net)
326         * OdbcException.cs : removed ErrorCode property, fixing signature
327         * OdbcErrorCollection.cs : added internal ctor, reduced 
328         accessibility of Add method to internal
329         * OdbcCommand.cs: marked hstmt field private, remove setters for
330         Parameters property
331         * OdbcDataReader.cs: Added GetDate method, renamed GetTimeSpan to
332         GetTime to match MS.NET, added HasRows stub
333
334 2004-05-09  Gert Driesen (drieseng@users.sourceforge.net)
335         * OdbcError.cs: 
336         * OdbcErrorCollection.cs:
337         * OdbcException.cs: fixed linefeeds to DOS to match other
338         sources in System.Data.Odbc
339
340 2004-05-09  Gert Driesen (drieseng@users.sourceforge.net)
341         * OdbcCommand.cs: No longer use OdbcConnection.Datareader, in order 
342         to fix signature of OdbcConnection
343         * OdbcDataReader.cs: No longer use ODbcConnection.Datareader, in 
344         order to fix signature of OdbcConnection
345         * OdbcConnection.cs: Signature fixes: removed DataReader property, 
346         added setter for ConnectionTimeout, made transaction internal
347         * OdbcParameter.cs: reduced accessibility of Bind method to 
348         internal, added setter for IsNullable
349         * OdbcParameterCollection.cs: made default ctor and Bind method
350         internal
351
352 2004-05-09  Gert Driesen (drieseng@users.sourceforge.net)
353         * OdbcCommand.cs: fixed linefeeds to DOS to match other sources
354         in System.Data.Odbc
355
356 2004-05-09  Gert Driesen (drieseng@users.sourceforge.net)
357         * OdbcTransaction.cs: fixed signature to match MS.NET
358
359 2004-05-09  Gert Driesen (drieseng@users.sourceforge.net)
360         * OdbcType.cs: fixed typo UniqueIndetifier
361         * OdbcColumn.cs : fixed typo UniqueIndetifier
362
363 2004-05-09  Gert Driesen (drieseng@users.sourceforge.net)
364         * OdbcType.cs: fixed linefeeds to DOS to match other sources
365         in System.Data.Odbc
366
367 2003-12-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
368
369         * OdbcTransaction.cs: applied patch from Jeff Seifert that makes
370         this class implement IDbTransaction interface.
371
372 2002-11-01  Daniel Morgan <danmorg@sc.rr.com>
373
374         * OdbcDataReader.cs: - uncommented code, but I put a FIXME:
375         according to Brian, this does not work on MS .NET however, we need it
376         for Mono for now. schemaRow.AcceptChanges(),
377         - implement IEnumerable.GetEnumerator()
378     
379         * libodbc.cs: changed the DllImport from "odbc32.dll" to "odbc32"
380     
381 2002-10-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
382
383         * ChangeLog: added.
384         * OdbcError.cs:
385         * OdbcException.cs: added dummy implementation for these missing
386         classes.
387