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