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