[Mono-bugs] [Bug 433741] New: PATCH for OdbcDataReader.GetBytes()

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 9 00:44:09 EDT 2008


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


           Summary: PATCH for OdbcDataReader.GetBytes()
           Product: Mono: Class Libraries
           Version: 2.0
          Platform: x86
        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


The OdbcDataReader.GetBytes() method returns me only one byte (only the last
one) of the data I want to have. This is due to a wrong index used at the end
of the function:


  if (copyBuffer) {
    int j = 0;
    while (tbuff [j] != libodbc.C_NULL) {
      buffer [bufferIndex + i /* <- must be j */ ] = tbuff [j];
      j++;
    }
    returnVal = j;
  }
return returnVal;


Funny thing that MS had a bug in this function from 2.0 to 3.5 SP1 as well. It
took them years to fix it...


-- 
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