[Mono-bugs] [Bug 372529] New: ODBC: (n)varchar parameters are not support

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Mar 19 16:33:20 EDT 2008


           Summary: ODBC: (n)varchar parameters are not support
           Product: Mono: Class Libraries
           Version: SVN
          Platform: All
        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: gert.driesen at pandora.be
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

When (n)varchar parameters are using to execute a SQL statement using ODBC
against SQL Server, then the following exception is thrown:

Unhandled Exception: System.Data.Odbc.OdbcException: [Microsoft][ODBC SQL
 Driver]Invalid precision value
  at System.Data.Odbc.OdbcParameter.Bind (IntPtr hstmt, Int32 ParamNum)
  at (wrapper remoting-invoke-with-check) System.Data.Odbc.OdbcParameter:Bind
  at System.Data.Odbc.OdbcCommand.BindParameters () [0x00000]
  at System.Data.Odbc.OdbcCommand.ExecSQL (System.String sql) [0x00000]
  at System.Data.Odbc.OdbcCommand.ExecuteNonQuery (Boolean freeHandle)
  at System.Data.Odbc.OdbcCommand.ExecuteNonQuery () [0x00000]
  at (wrapper remoting-invoke-with-check)
nQuery ()
  at Program.Main () [0x00000]

To reproduce, compile and run the attached source code.

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