[Mono-bugs] [Bug 613087] New: Unable to convert SqlInt64 to SqlDecimal

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jun 9 19:14:10 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=613087

http://bugzilla.novell.com/show_bug.cgi?id=613087#c0


           Summary: Unable to convert SqlInt64 to SqlDecimal
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.4.x
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: eduardo at noticiaslinux.com.br
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3)
Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)

SqlDecimal sd = mySqlDataReader.GetSqlDecimal(2); //2 is a System.Int64

This gets printed out: "Type is System.Int64"
However, it seems this operation should be possible:
http://msdn.microsoft.com/en-us/library/ms136745.aspx

Reproducible: Always

Steps to Reproduce:
1. Have your SqlDataReader retrieve an Int64 column (type in my Sql Server DB
is decimal(18,0))
2. Try running the SqlDecimal sd =
mySqlDataReader.GetSqlDecimal(decimal18column);
Actual Results:  
Get the message (from exception): "Type is System.Int64"
I believe that comes from
mono-2.6.4/mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs

Expected Results:  
No error message at all, should get my SqlDecimal set up.

My Mandriva (2010.0 for i586) is running Mono JIT compiler version 2.4.2.3.
However, as you can see, I've downloaded the latest code just to take a look
and spot where it might be coming from (I'm not using Mono 2.6.4 at all).

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list