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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to