[Mono-bugs] [Bug 385027] New: DbCommandBuilder AllowDBNull checks don't add Parameters

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Apr 29 18:48:30 EDT 2008


           Summary: DbCommandBuilder AllowDBNull checks don't add Parameters
           Product: Mono: Class Libraries
           Version: 1.9.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Data
        AssignedTo: bnc-blr-team-mono at forge.provo.novell.com
        ReportedBy: tedu at fogcreek.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

The create Update and Delete Command methods use too many parameter indices.

This results in errors like:

MySql.Data.MySqlClient.MySqlException: Parameter '@p6' must be defined.
  at MySql.Data.MySqlClient.Statement.SerializeParameter
MySqlParameterCollection parameters, MySql.Data.MySqlClient.MySqlStream
 System.String parmName) [0x00000] 
  at MySql.Data.MySqlClient.Statement.InternalBindParameters (System.String
 MySql.Data.MySqlClient.MySqlParameterCollection parameters,
ent.MySqlStream stream) [0x00000] 
  at MySql.Data.MySqlClient.Statement.BindParameters () [0x00000] 
  at MySql.Data.MySqlClient.Statement.Execute () [0x00000] 
  at MySql.Data.MySqlClient.PreparableStatement.Execute () [0x00000] 
  at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader (CommandBehavior
) [0x00000]

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