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