* SqlDecimal.cs: Changed argument names to match MS. Code formatting.
[mono.git] / mcs / class / System.Data / System.Data.SqlTypes / ChangeLog
1 2008-04-21  Gert Driesen  <drieseng@users.sourceforge.net>
2
3         * SqlDecimal.cs: Changed argument names to match MS. Code formatting.
4         * SqlNotFilledException.cs: Changed argument names to match MS. Code
5         formatting.
6         * SqlChars.cs: Changed argument names to match MS. Code formatting.
7         * SqlTypeException.cs: Changed argument names to match MS. Code
8         formatting.
9         * SqlXml.cs: Changed argument names to match MS. Code formatting.
10         * SqlInt16.cs: Changed argument names to match MS. Code formatting.
11         * SqlInt64.cs: Changed argument names to match MS. Code formatting.
12         * SqlTruncateException.cs: Changed argument names to match MS.
13         Code formatting.
14         * SqlDouble.cs: Changed argument names to match MS. Code formatting.
15         * SqlSingle.cs: Changed argument names to match MS. Code formatting.
16         * SqlBytes.cs: Changed argument names to match MS. Code formatting.
17         * SqlNullValueException.cs: Changed argument names to match MS. Code
18         formatting.
19         * SqlMoney.cs: Changed argument names to match MS. Code formatting.
20
21 2007-10-02  Veerapuram Varadhan <vvaradhan@novell.com> 
22
23         * SqlChars.cs, SqlBytes.cs (Read, Write): Implemented missing 2.0 APIs.
24
25 2007-09-27  Veerapuram Varadhan <vvaradhan@novell.com> 
26
27         * SqlDecimal.cs, SqlInt32.cs, SqlChars.cs, SqlInt16.cs, SqlInt64.cs,
28           SqlString.cs, SqlDouble.cs (GetXsdType, GetSchema): Removed the
29           extra XmlRootAttribute and GetXsdType will return appropriate
30           modified root attribute for the XML Serializer.  Implemented
31           missing 2.0 API.
32
33 2007-09-25  Veerapuram Varadhan  <vvaradhan@novell.com>
34
35         * SqlChars.cs (ReadXml, WriteXml): Implemented APIs.
36
37         * SqlInt16.cs (ReadXml, WriteXml): Implemented APIs.
38
39         * SqlInt32.cs (ReadXml, WriteXml): Implemented APIs.
40
41         * SqlInt64.cs (ReadXml, WriteXml): Implemented APIs.
42
43         * SqlDecimal.cs (ReadXml, WriteXml): Implemented APIs.
44
45         * SqlDouble.cs (ReadXml, WriteXml): Implemented APIs.
46
47         * SqlString.cs (ReadXml, WriteXml): Implemented APIs.
48
49 2007-09-25  Nagappan A  <anagappan@novell.com>
50
51         * SqlMoney.cs (implicit, explicit): Implemented missing APIs.
52
53         * SqlBytes.cs (implicit, explicit): Implemented missing APIs.
54
55         * SqlBinary.cs: 2.0 attribute fixes.
56
57         * SqlAlreadyFilledException.cs: 2.0 attribute fixes.
58
59         * SqlBoolean.cs: 2.0 attribute fixes.
60
61         * SqlByte.cs: 2.0 attribute fixes.
62
63         * SqlXml.cs: 2.0 attribute fixes.
64
65         * SqlChars.cs (implicit, explicit): Implemented missing APIs.
66
67         * SqlDecimal.cs (implicit, explicit): Implemented missing APIs.
68
69 2007-07-26  Nagappan A  <anagappan@novell.com>
70
71         * SqlString.cs: notNull private member is now updated properly in
72         the constructure, based on the argument being passed.
73
74 2007-07-24  Nagappan A  <anagappan@novell.com>
75
76         * SqlString.cs: Fixed compilation warning.
77
78         * SqlBytes.cs: Fixed compilation warning.
79
80         * SqlChars.cs: Fixed compilation warning.
81
82 2007-05-10  Adar Wesley <adarw@mainsoft.com>
83
84         * SqlBoolean.cs: fixed typo in method names GreaterThanOrEquals,
85         LessThanOrEquals.
86
87         * SqlByte.cs: added missing method Modulus.
88
89         * SqlBytes.cs: added missing methods Read, Write.
90
91         * SqlChars.cs: added missing methods ToSqlString, Write.
92
93         * SqlDateTime.cs: added missing methods Add, Subtract.
94
95         * SqlXml.cs: added missing method CreateReader.
96
97 2007-05-04  Raja R Harinath  <rharinath@novell.com>
98
99         * SqlDateTime.cs: Rewrite parts converting SQL ticks to and from
100         DateTime ticks.  Attempt to understand what the damned 'bilisecond'
101         means.
102
103 2007-03-09  Nagappan A  <anagappan@novell.com>
104
105         * SqlBoolean.cs (GreaterThan, GreaterThanOrEqual, LessThan)
106         (LessThanOrEqual, GetXsdType, operator >, >=, <, <=): Implemented
107         missing 2.0 methods.
108
109         * SqlDouble.cs (GetXsdType): Implemented missing 2.0 method.
110
111         * SqlString.cs (GetXsdType): Implemented missing 2.0 method.
112
113         * SqlBinary.cs (Add, GetXsdType): Implemented missing 2.0 methods.
114
115         * SqlByte.cs (GetXsdType): Implemented missing 2.0 method.
116
117         * SqlBytes.cs (GetXsdType): Implemented missing 2.0 method.
118
119         * SqlChars.cs (GetXsdType): Implemented missing 2.0 method.
120
121         * SqlXml.cs (GetXsdType): Implemented missing 2.0 method.
122
123         * SqlGuid.cs (GetXsdType): Implemented missing 2.0 method.
124
125         * SqlInt64.cs (GetXsdType): Implemented missing 2.0 method.
126
127         * SqlInt32.cs (GetXsdType): Implemented missing 2.0 method.
128
129         * SqlInt16.cs (GetXsdType): Implemented missing 2.0 method.
130
131         * SqlNotFilledException.cs: Fixed syntax errors based on class
132         status page.
133
134         * SqlDecimal.cs (GetXsdType): Implemented missing method.
135
136         * SqlDateTime.cs (GetXsdType): Implemented missing method.
137
138         * SqlMoney.cs (GetXsdType): Implemented missing 2.0 method.
139
140         * SqlSingle.cs (GetXsdType): Implemented missing 2.0 method.
141
142 2007-02-11  Konstantin Triger <kostat@mainsoft.com>
143
144         * SqlDateTime.cs, SqlDecimal.cs, SqlByte.cs, SqlDouble.cs, SqlBoolean.cs,
145                 SqlBinary.cs, SqlGuid.cs: Added a 2.0 CompareTo override (refactoring).
146
147 2007-02-11  Vladimir Krasnov  <vladimirk@mainsoft.com>
148
149         * SqlDateTime.cs: changed MaxValue and MinValue initialization, it was
150         failing on .net VM.
151
152 2007-02-09  Nagappan A  <anagappan@novell.com>
153
154         * SqlNotFilledException.cs: Removed APIs that are not part of both
155         1.0 and 2.0.
156
157         * SqlTypeException.cs: Implemented missing attributes.
158
159         * SqlChars.cs, SqlBytes.cs: Implemented missing attributes,
160         methods and added IXmlSerializable.
161
162         * SqlDouble.cs, SqlSingle.cs, SqlBinary.cs, SqlString.cs:
163         Implemented missing attributes, added IXmlSerializable.
164
165         * SqlXml.cs, SqlInt16.cs, SqlInt32.cs, SqlInt64.cs: Implemented
166         missing attributes, added IXmlSerializable.
167
168         * SqlDateTime.cs, SqlDecimal.cs, SqlMoney.cs, SqlGuid.cs:
169         Implemented missing attributes, added IXmlSerializable
170
171 2006-07-19  Senganal T  <tsenganal@novell.com>
172
173         * SqlDecimal.cs :
174                 - Ctr : Throw OverflowException is value oveflows
175                 - AdjustScale : Support values greater than Decimal.MaxValue.
176                 Throw SqlTruncateException if scale cannot be adjusted.
177                 - ConvertToPrecScale : Fix the precision
178                 - Sign : use IsPositive to check for sign
179                 - ToString : Do not append extrs '0'
180                 - operator + , -, * : Support values greater than
181                 decimal.maxvalue. Fix for infinite loop when '-' is
182                 invoked for some cases.
183                 - operators >,<,>=.<=,==,!= : Fix operations on negative numbers
184         Thanks to Harish Kumar Singh for the patch
185         
186 2006-02-17  Chris Toshok  <toshok@ximian.com>
187
188         * StorageState.cs: correct namespace, and remove "Delayed"
189         element.
190
191 2006-02-03  Senganal T <tseganal@novell.com>
192
193         * SqlString.cs : 
194                 - GetUnicodeBytes()
195                 - GetNonUnicodeBytes() 
196                 - Constructor 
197                         Use Encoding class to convert between byte[] and string
198
199 2006-01-27  Senganal T <tsenganal@novell.com>
200
201         * SqlDateTime : Corrected the MaxValue for SqlDateTime
202         
203 2005-09-15  Raja R Harinath  <rharinath@novell.com>
204
205         * SqlString.cs (MoneyFormat): Move to SqlMoney.cs.
206         (operator SqlString) [SqlMoney variant]: Delegate to
207         SqlMoney.ToString ().
208         * SqlMoney.cs (MoneyFormat): Move from SqlString.cs.
209         (SqlString): New static constructor.
210         (ToString): Use it.
211
212 2005-09-02 Umadevi S <sumadevi@novell.com>
213
214         * SqlXml.cs : Added a dummy placeholder to compile MicrosoftServer namespace
215
216 2005-03-11  Sureshkumar T  <tsureshkumar@novell.com>
217
218         * SqlDateTime.cs (Parse): Re-org. Resolve unreachable code.
219
220 2005-02-11  Sureshkumar T  <tsureshkumar@novell.com>
221             Ankit Jain     <radical@corewars.org>
222
223         * SqlGuid.cs: Fixed CompareTo to compare all the 16 digits. This
224         is a LAMESPEC and current implementation matches ms.net. This
225         actually reverts Uma's patch with revison 29013.
226
227 2005-02-03  Sureshkumar T  <tsureshkumar@novell.com>
228
229         * SqlDateTime.cs : Parse : try with local culture first, then try
230         with invariant culture if it fails.
231
232 2004-09-14 Umadevi S <sumadevi@novell.com>
233         * Made SerializableAttribute !net_2_0 for all the exception classes
234
235                                                                                                     
236 2004-09-14 Umadevi S <sumadevi@novell.com>
237         * SqlAlreadyFilledException.cs, SqlNotFilledException.cs - Added these files
238
239 2004-07-21 Umadevi S <sumadevi@novell.com>
240         * SqlInt16.cs, SqlInt32.cs, SqlInt64.cs - Added Modulus,CompareTo method from .NET2.0
241
242 2004-07-14 Umadevi S <sumadevi@novell.com>
243         * SqlMoney.cs, SqlSingle.cs - Added CompareTo method from .NET2.0
244         * Added new Enum StorageState.cs
245
246 2004-07-14 Umadevi S <sumadevi@novell.com>
247         * SqlString.cs :Fixed + operator for null, CompareTo to throw SqlTypeException
248                         Implemented Add and CompareTo methods from .NET2.0
249
250 2004-06-18  Gert Driesen <drieseng@users.sourceforge.net>
251
252         * SqlNullValueException.cs: fixed serialization
253         * SqlTruncateException.cs: fixed serialization
254         * SqlTypeException.cs: fixed serialization
255
256 2004-06-18  Sebastien Pouliot  <sebastien@ximian.com>
257
258         * SqlMoney.cs: Removed old "hack" to correct scale after rounding as
259         Decimal has been fixed (in fact this code was moved and adapted for
260         Decimal as it was better than the previous fix).
261
262 2004-06-08 Umadevi S <sumadevi@novell.com>
263         * SqlGuid.cs - fixed bug 59420. Implemented CompareTo according to MSDN documenation
264
265 2004-05-27  Atsushi Enomoto  <atsushi@ximian.com>
266
267         * SqlDecimal.cs : don't output debug message to Console.
268
269 2004-05-18  Atsushi Enomoto  <atsushi@ximian.com>
270
271         * SqlDecimal.cs : Fixed operator/ not to return positive always.
272           Halfly fixed ConvertToPrecScale() that was broken.
273
274 2004-05-18  Atsushi Enomoto  <atsushi@ximian.com>
275
276         * SqlDecimal.cs :
277           - .ctor() should check the valid scale range and throw 
278             SqlTypeException.
279           - Value should copy the last int32 value fragment.
280           - Fixed Abs() and Ceiling() to return Null when the input is Null.
281           - Now AdjustScale() should not depend on Truncate() that keeps zero
282             digits correctly. So Round() before returning the final result.
283           - ToString() should insert '-' for minus values.
284           - operator+ should use larger scale of operands rather than smaller
285             scale.
286
287 2004-05-18  Atsushi Enomoto  <atsushi@ximian.com>
288
289         * SqlDecimal.cs : Fixed Truncate() to work fine.
290         * SqlMoney.cs : Added one hack line in operator/ to work fine.
291
292 2004-05-18  Atsushi Enomoto  <atsushi@ximian.com>
293
294         * SqlDecimal.cs : Fixed AdjustScale(). When reducing digits, scale
295           parameter was incorrect.
296
297 2004-05-18  Atsushi Enomoto  <atsushi@ximian.com>
298
299         * SqlDecimal.cs :
300           - .ctor(double) initializes the precision as 17. If not sufficient,
301             it calls AdjustScale(), and if too much then it calls Round().
302           - Data should not return the internal array otherwise it might be
303             modified by outer code.
304           - Reimplemented AdjustScale() to work fine.
305           - Reimplemented Parse(). It should rather use Decimal.Parse() 
306             rather than SqlDouble.Parse() for parsable value range difference.
307           - Reimplemented Round(). Don't use double.
308           - Fixed ToString() to return "Null" for null value.
309           - Fixed explicit let operator to use double .ctor, not decimal
310             .ctor() so that precision can be handled in the same way as double.
311
312 2004-05-17  Atsushi Enomoto  <atsushi@ximian.com>
313
314         * SqlBinary.cs,
315           SqlDateTime.cs,
316           SqlDouble.cs,
317           SqlGuid.cs,
318           SqlMoney.cs,
319           SqlSingle.cs,
320           SqlString.cs : If values are null, ToString() should return "Null".
321
322 2004-05-11  Atsushi Enomoto  <atsushi@ximian.com>
323
324         * SqlMoney.cs : Handle fixed digits correctly.
325           Round decimal value before casting into other numeric types.
326         * SqlInt16.cs,
327           SqlInt32.cs,
328           SqlInt64.cs : Round SqlMoney decimal value before casting into them.
329         * SqlDateTime.cs :
330           Added range check.
331           Years and months were ignored in some .ctor().
332           Return invariant culture string in ToString().
333           Return null for operator - when operand is null.
334
335 2004-05-09  Gert Driesen (drieseng@users.sourceforge.net)
336         * SqlString.cs: change accessibility of CompareOptions property
337         to private, commented out unreachable code
338
339 2004-04-12  Atsushi Enomoto  <atsushi@ximian.com>
340
341         * SqlBoolean.cs : Allow "0" and "1" on Parse(). Allow SqlString.Null
342           in conversion.
343         * SqlString.cs : CompareOption should not be None.
344
345 2004-04-01  Lluis Sanchez Gual  <lluis@ximian.com>
346
347         * SqlNullValueException.cs: Use a more clarifying error message.
348           
349 2003-12-19  Tim Coleman <tim@timcoleman.com>
350         * SqlBytes.cs SqlChars.cs SqlDate.cs SqlStreamChars.cs SqlTime.cs
351         * SqlUtcDateTime.cs SqlXmlReader.cs:
352                 New stubs added
353 2003-06-03  Ville Palo <vi64pa@kolumbus.fi>
354
355         * SqlBinary.cs: Changed one SqlTypeException --> IndexOutOfRange
356         * SqlMoney.cs: checkings
357         
358 2003-06-02  Ville Palo <vi64pa@kolumbus.fi>
359
360         * SqlString.cs: implementes less than and greater than operators.
361         Added some checks to ctor.
362                 
363 2003-06-01  Ville Palo <vi64pa@kolumbus.fi>
364
365         * SqlString.cs: added null checking
366         
367 2003-05-28  Ville Palo <vi64pa@kolumbus.fi>
368
369         * SqlMoney.cs: little fixes and clean ups
370         
371 2003-05-28  Ville Palo <vi64pa@kolumbus.fi>
372
373         * SqlInt16.cs: more checked fixes.
374         * SqlInt64.cs: checked fixes.
375         * SqlSingle.cs: checked fixes.
376         
377 2003-05-28  Ville Palo <vi64pa@kolumbus.fi>
378
379         * SqlInt16.cs: little fixes.
380         
381 2003-05-28  Ville Palo <vi64pa@kolumbus.fi>
382
383         * SqlDouble.cs: Some fixes. Mostly infinity checks
384         * SqlSingle.cs: tiny fixes.
385         * SqlInt64.cs: checked fix.
386         
387 2003-05-28  Ville Palo <vi64pa@kolumbus.fi>
388
389         * ChangeLog: Added this.
390         * SqlByte.cs: Fixed checked parts
391         
392