[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


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


           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
Server
 Driver]Invalid precision value
  at System.Data.Odbc.OdbcParameter.Bind (IntPtr hstmt, Int32 ParamNum)
[0x00000]
  at (wrapper remoting-invoke-with-check) System.Data.Odbc.OdbcParameter:Bind
(intptr,int)
  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)
[0x00000]
  at System.Data.Odbc.OdbcCommand.ExecuteNonQuery () [0x00000]
  at (wrapper remoting-invoke-with-check)
System.Data.Odbc.OdbcCommand:ExecuteNo
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