https://bugzilla.novell.com/show_bug.cgi?id=386476
Summary: System.Data.Common.DbParameter.ParameterName should not require "@" to be prepended Product: Mono: Class Libraries Version: 1.9.0 Platform: PC OS/Version: Windows XP Status: NEW Severity: Normal Priority: P5 - None Component: Sys.Data AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] QAContact: mono-bugs@lists.ximian.com Found By: Development //This code does not work //Does not work with System.Data.SqlClient provider using System; using System.Data.Common; public void CreateParameter(DbCommand cmd) { DbParameter p = cmd.CreateParameter(); p.ParameterName = "ThisShouldWork"; // mono requires // p.ParameterName = "@ThisShouldWork"; } Beginning of stack trace: Unhandled Exception: System.Data.SqlClient.SqlException: Procedure or Function ' Metabase_Get' expects parameter '@Type', which was not supplied. at System.Data.SqlClient.SqlConnection.ErrorHandler (System.Object sender, Mon o.Data.Tds.Protocol.TdsInternalErrorMessageEventArgs e) [0x00000] in C:\cygwin\t mp\monobuild\build\BUILD\mono-1.9.1\mcs\class\System.Data\System.Data.SqlClient\ SqlConnection.cs:307 -- 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 - mono-bugs@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-bugs