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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to