diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2002-11-08 04:39:14 +0300 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2002-11-08 04:39:14 +0300 |
commit | 4d158ac91b22e81f764e1235eba4cca90e603c18 (patch) | |
tree | f9b230a01e11298fd8cd36bb1a3090dba710721b /mcs/class/System.Data/System.Data.SqlTypes | |
parent | 9fcebba41ecb190a026a2ae34f61198b3f65ebf0 (diff) |
2002-11-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* System.Data.SqlTypes/SqlDecimal.cs: fixed build. Someone should check
my comments and do something more appropiate.
svn path=/trunk/mcs/; revision=8879
Diffstat (limited to 'mcs/class/System.Data/System.Data.SqlTypes')
-rw-r--r-- | mcs/class/System.Data/System.Data.SqlTypes/SqlDecimal.cs | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/mcs/class/System.Data/System.Data.SqlTypes/SqlDecimal.cs b/mcs/class/System.Data/System.Data.SqlTypes/SqlDecimal.cs index a68e118b58d..b32c5c4ab21 100644 --- a/mcs/class/System.Data/System.Data.SqlTypes/SqlDecimal.cs +++ b/mcs/class/System.Data/System.Data.SqlTypes/SqlDecimal.cs @@ -33,19 +33,24 @@ namespace System.Data.SqlTypes public static readonly byte MaxPrecision = 38; public static readonly byte MaxScale = 38; - // This sould be 1E+38-1 + // [1] Avoid breaking the build + // [1] This should be 99999999999999999999999999999999999999 (Console.WriteLine (SqlDecimal.MaxValue); public static readonly SqlDecimal MaxValue = new SqlDecimal (MaxPrecision, (byte)0, true, (int)716002642, - (int)2858073428, + //[1](int)2858073428, + Int32.MaxValue, + // (int)1518778966, (int)1262177448); - // This should be -1E+38 + // [1]This should be -99999999999999999999999999999999999999 (Console.WriteLine (SqlDecimal.MinValue); public static readonly SqlDecimal MinValue = new SqlDecimal (MaxPrecision, (byte)0, false, (int)716002642, - (int)2858073428, + // [1] (int)2858073428, + Int32.MaxValue, + // (int)1518778966, (int)1262177448); @@ -77,9 +82,8 @@ namespace System.Data.SqlTypes else positive = false; - precision = GetPrecision (value); - notNull = true; + precision = GetPrecision (value); } public SqlDecimal (double value) : this ((decimal)value) { } |