[Mono-bugs] [Bug 433742] New: OdbcDataAdapter.Update() fails

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 9 00:47:43 EDT 2008


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


           Summary: OdbcDataAdapter.Update() fails
           Product: Mono: Class Libraries
           Version: unspecified
          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


After a call to OdbcDataAdapter.Update() using a DataTable as parameter MONO
2.0 throws an exception. The same call works fine with the MS framework
(Version 3.5 SP1). Tested with several database servers without finding any
difference in behavior.

System.NullReferenceException

Stack trace:

  at System.Data.Odbc.OdbcParameter.GetNativeSize () [0x00181] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.Data\System.Data.Odbc\OdbcParameter.cs:386 
  at System.Data.Odbc.OdbcParameter.Bind (System.Data.Odbc.OdbcCommand command,
IntPtr hstmt, Int32 ParamNum) [0x0003d] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.Data\System.Data.Odbc\OdbcParameter.cs:321 
  at (wrapper remoting-invoke-with-check) System.Data.Odbc.OdbcParameter:Bind
(System.Data.Odbc.OdbcCommand,intptr,int)
  at System.Data.Odbc.OdbcCommand.BindParameters () [0x0001f] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.Data\System.Data.Odbc\OdbcCommand.cs:464 
  at System.Data.Odbc.OdbcCommand.ExecSQL (System.String sql) [0x0006c] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.Data\System.Data.Odbc\OdbcCommand.cs:395 
  at System.Data.Odbc.OdbcCommand.ExecuteNonQuery (Boolean freeHandle)
[0x00033] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.Data\System.Data.Odbc\OdbcCommand.cs:425 
  at System.Data.Odbc.OdbcCommand.ExecuteReader (CommandBehavior behavior)
[0x00000] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.Data\System.Data.Odbc\OdbcCommand.cs:497 
  at System.Data.Odbc.OdbcCommand.ExecuteDbDataReader (CommandBehavior
behavior) [0x00000] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.Data\System.Data.Odbc\OdbcCommand.cs:487 
  at System.Data.Common.DbCommand.ExecuteReader (CommandBehavior behavior)
[0x00000] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.Data\System.Data.Common\DbCommand.cs:128 
  at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader
(CommandBehavior behavior) [0x00000] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.Data\System.Data.Common\DbCommand.cs:145 
  at System.Data.Common.DbDataAdapter.Update (System.Data.DataRow[] dataRows,
System.Data.Common.DataTableMapping tableMapping) [0x002c3] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.Data\System.Data.Common\DbDataAdapter.cs:712


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