[Mono-bugs] [Bug 430408] New: OdbcDataReader fails on SqlServer with bigint row

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Sep 27 10:15:50 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=430408


           Summary: OdbcDataReader fails on SqlServer with bigint row
           Product: Mono: Class Libraries
           Version: 2.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Data
        AssignedTo: bnc-blr-team-mono at forge.provo.novell.com
        ReportedBy: awunwpa7 at yahoo.com.ph
         QAContact: mono-bugs at lists.ximian.com
          Found By: Beta-Customer


Description of Problem:

When I use OdbcDataReader together with SqlServer 2005 on a data cell of data
type "bigint" that contains a long.MinValue (-9,223,372,036,854,775,808), the
MS framework can retrieve the correct value, but the MONO framework throws an
exception:

System.Data.Odbc.OdbcException

Message:
ERROR [22003] [Microsoft][ODBC SQL Server Driver]

Stack Trace:
System.Data.Odbc.OdbcDataReader.GetValue (Int32 i) [0x006b6] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.Data\System.Data.Odbc\OdbcDataReader.cs:822

Steps to reproduce the problem:
1. Connect to SqlServer 2005 per ODBC.
2. Set up a table with a "bigint" column that contains one row containing the
value -9,223,372,036,854,775,808.
3. Try to retrieve the rows content with OdbcDataReader.GetValue().

How often does this happen? 

Always

Tested only with SqlServer 2005 and the corresponding ODBC-Driver on Windows
XP, using MONO 2.0 rc1.


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


More information about the mono-bugs mailing list