[Mono-bugs] [Bug 385028] New: DbCommandBuilder InsertCommand doesn't use default values

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


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


           Summary: DbCommandBuilder InsertCommand doesn't use default
                    values
           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: ---


When no value is provided, the insert statement should use the default, not try
to insert Null.

This results in errors like 

MySql.Data.MySqlClient.MySqlException: Column 'Word' cannot be nul
l
  at MySql.Data.MySqlClient.MySqlStream.OpenPacket () [0x00000] 
  at MySql.Data.MySqlClient.NativeDriver.ReadResult (System.UInt64&
affectedRows
, System.Int64& lastInsertId) [0x00000] 
  at MySql.Data.MySqlClient.MySqlDataReader.GetResultSet () [0x00000] 
  at MySql.Data.MySqlClient.MySqlDataReader.NextResult () [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