[Mono-bugs] [Bug 70228][Nor] Changed - SybaseClient bug on reading Decimal Fields
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 13 Jan 2005 17:15:44 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by sebastien.robitaille@croesus.com.
http://bugzilla.ximian.com/show_bug.cgi?id=70228
--- shadow/70228 2005-01-13 17:10:26.000000000 -0500
+++ shadow/70228.tmp.25802 2005-01-13 17:15:44.000000000 -0500
@@ -83,6 +83,36 @@
Do you have a simple repeatable test case?
------- Additional Comments From sebastien.robitaille@croesus.com 2005-01-13 17:10 -------
Created an attachment (id=13720)
Test Case
+
+------- Additional Comments From sebastien.robitaille@croesus.com 2005-01-13 17:15 -------
+With the test case provided in the previous comment, you will get
+incorrect values when reading them back from the database.
+
+With my application, I also have the following exception (which I
+was not able to reproduce with the test case, but is related to the
+same problem):
+
+System.OverflowException: Number overflow.
+in <0x00145> Mono.Data.Tds.Protocol.Tds:GetDecimalValue (byte,byte)
+in <0x0006f> (wrapper remoting-invoke-with-check)
+Mono.Data.Tds.Protocol.Tds:GetDecimalValue (byte,byte)
+in <0x004ac> Mono.Data.Tds.Protocol.Tds:GetColumnValue
+(Mono.Data.Tds.Protocol.TdsColumnType,bool,int)
+in <0x00077> (wrapper remoting-invoke-with-check)
+Mono.Data.Tds.Protocol.Tds:GetColumnValue
+(Mono.Data.Tds.Protocol.TdsColumnType,bool,int)
+in <0x00124> Mono.Data.Tds.Protocol.Tds:LoadRow ()
+in <0x0004f> (wrapper remoting-invoke-with-check)
+Mono.Data.Tds.Protocol.Tds:LoadRow ()
+in <0x0031d> Mono.Data.Tds.Protocol.Tds:ProcessSubPacket ()
+in <0x00031> Mono.Data.Tds.Protocol.Tds:NextRow ()
+in <0x00097> Mono.Data.SybaseClient.SybaseDataReader:Read ()
+<truncated>
+
+
+This exception cannot be reproduced anymore if the patch provided in
+the bug description is applied to Tds.cs.
+