[Mono-bugs] [Bug 386476] New: System.Data.Common.DbParameter. ParameterName should not require "@" to be prepended
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun May 4 02:39:10 EDT 2008
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: bnc-blr-team-mono at forge.provo.novell.com
ReportedBy: bpierson at connexatools.com
QAContact: mono-bugs at 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.
More information about the mono-bugs
mailing list