[Mono-bugs] [Bug 73157][Nor] Changed - ODBC type SQL_NUMERIC gives InvalidCastException
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 16 Mar 2005 03:24:19 -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 tsureshkumar@novell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=73157
--- shadow/73157 2005-03-15 18:30:09.000000000 -0500
+++ shadow/73157.tmp.29328 2005-03-16 03:24:18.000000000 -0500
@@ -1,13 +1,13 @@
Bug#: 73157
Product: Mono: Class Libraries
Version: 1.1
OS: All
OS Details:
-Status: NEW
-Resolution:
+Status: RESOLVED
+Resolution: NOTABUG
Severity: Unknown
Priority: Normal
Component: Sys.Data
AssignedTo: tsureshkumar@novell.com
ReportedBy: timo-mono@pokorra.de
QAContact: mono-bugs@ximian.com
@@ -47,6 +47,16 @@
------- Additional Comments From miguel@ximian.com 2005-03-15 18:30 -------
Assigning to Suresh; This is a guess.
Suresh feel free to re-assign to the proper person.
+
+------- Additional Comments From tsureshkumar@novell.com 2005-03-16 03:24 -------
+This behavior is as expected.
+
+Numeric sql type will be converted to System.Decimal. If you need
+double, you have to do System.Convert.ToDouble (reader [0]). This is
+same case on ms.net too.
+
+These datatype mapping have been done recently in odbc providers.
+Please try with the new 1.1 providers.