2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.Data / System.Data.SqlTypes / ChangeLog
1 2004-05-27  Atsushi Enomoto  <atsushi@ximian.com>
2
3         * SqlDecimal.cs : don't output debug message to Console.
4
5 2004-05-18  Atsushi Enomoto  <atsushi@ximian.com>
6
7         * SqlDecimal.cs : Fixed operator/ not to return positive always.
8           Halfly fixed ConvertToPrecScale() that was broken.
9
10 2004-05-18  Atsushi Enomoto  <atsushi@ximian.com>
11
12         * SqlDecimal.cs :
13           - .ctor() should check the valid scale range and throw 
14             SqlTypeException.
15           - Value should copy the last int32 value fragment.
16           - Fixed Abs() and Ceiling() to return Null when the input is Null.
17           - Now AdjustScale() should not depend on Truncate() that keeps zero
18             digits correctly. So Round() before returning the final result.
19           - ToString() should insert '-' for minus values.
20           - operator+ should use larger scale of operands rather than smaller
21             scale.
22
23 2004-05-18  Atsushi Enomoto  <atsushi@ximian.com>
24
25         * SqlDecimal.cs : Fixed Truncate() to work fine.
26         * SqlMoney.cs : Added one hack line in operator/ to work fine.
27
28 2004-05-18  Atsushi Enomoto  <atsushi@ximian.com>
29
30         * SqlDecimal.cs : Fixed AdjustScale(). When reducing digits, scale
31           parameter was incorrect.
32
33 2004-05-18  Atsushi Enomoto  <atsushi@ximian.com>
34
35         * SqlDecimal.cs :
36           - .ctor(double) initializes the precision as 17. If not sufficient,
37             it calls AdjustScale(), and if too much then it calls Round().
38           - Data should not return the internal array otherwise it might be
39             modified by outer code.
40           - Reimplemented AdjustScale() to work fine.
41           - Reimplemented Parse(). It should rather use Decimal.Parse() 
42             rather than SqlDouble.Parse() for parsable value range difference.
43           - Reimplemented Round(). Don't use double.
44           - Fixed ToString() to return "Null" for null value.
45           - Fixed explicit let operator to use double .ctor, not decimal
46             .ctor() so that precision can be handled in the same way as double.
47
48 2004-05-17  Atsushi Enomoto  <atsushi@ximian.com>
49
50         * SqlBinary.cs,
51           SqlDateTime.cs,
52           SqlDouble.cs,
53           SqlGuid.cs,
54           SqlMoney.cs,
55           SqlSingle.cs,
56           SqlString.cs : If values are null, ToString() should return "Null".
57
58 2004-05-11  Atsushi Enomoto  <atsushi@ximian.com>
59
60         * SqlMoney.cs : Handle fixed digits correctly.
61           Round decimal value before casting into other numeric types.
62         * SqlInt16.cs,
63           SqlInt32.cs,
64           SqlInt64.cs : Round SqlMoney decimal value before casting into them.
65         * SqlDateTime.cs :
66           Added range check.
67           Years and months were ignored in some .ctor().
68           Return invariant culture string in ToString().
69           Return null for operator - when operand is null.
70
71 2004-05-09  Gert Driesen (drieseng@users.sourceforge.net)
72         * SqlString.cs: change accessibility of CompareOptions property
73         to private, commented out unreachable code
74
75 2004-04-12  Atsushi Enomoto  <atsushi@ximian.com>
76
77         * SqlBoolean.cs : Allow "0" and "1" on Parse(). Allow SqlString.Null
78           in conversion.
79         * SqlString.cs : CompareOption should not be None.
80
81 2004-04-01  Lluis Sanchez Gual  <lluis@ximian.com>
82
83         * SqlNullValueException.cs: Use a more clarifying error message.
84           
85 2003-12-19  Tim Coleman <tim@timcoleman.com>
86         * SqlBytes.cs SqlChars.cs SqlDate.cs SqlStreamChars.cs SqlTime.cs
87         * SqlUtcDateTime.cs SqlXmlReader.cs:
88                 New stubs added
89 2003-06-03  Ville Palo <vi64pa@kolumbus.fi>
90
91         * SqlBinary.cs: Changed one SqlTypeException --> IndexOutOfRange
92         * SqlMoney.cs: checkings
93         
94 2003-06-02  Ville Palo <vi64pa@kolumbus.fi>
95
96         * SqlString.cs: implementes less than and greater than operators.
97         Added some checks to ctor.
98                 
99 2003-06-01  Ville Palo <vi64pa@kolumbus.fi>
100
101         * SqlString.cs: added null checking
102         
103 2003-05-28  Ville Palo <vi64pa@kolumbus.fi>
104
105         * SqlMoney.cs: little fixes and clean ups
106         
107 2003-05-28  Ville Palo <vi64pa@kolumbus.fi>
108
109         * SqlInt16.cs: more checked fixes.
110         * SqlInt64.cs: checked fixes.
111         * SqlSingle.cs: checked fixes.
112         
113 2003-05-28  Ville Palo <vi64pa@kolumbus.fi>
114
115         * SqlInt16.cs: little fixes.
116         
117 2003-05-28  Ville Palo <vi64pa@kolumbus.fi>
118
119         * SqlDouble.cs: Some fixes. Mostly infinity checks
120         * SqlSingle.cs: tiny fixes.
121         * SqlInt64.cs: checked fix.
122         
123 2003-05-28  Ville Palo <vi64pa@kolumbus.fi>
124
125         * ChangeLog: Added this.
126         * SqlByte.cs: Fixed checked parts
127         
128