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