Bug #5819 | ADO.NET Data provider does not support ADO parameter naming | ||
---|---|---|---|
Submitted: | 30 Sep 2004 3:46 | Modified: | 13 Oct 2004 18:00 |
Reporter: | Craig Shield | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Connector / NET | Severity: | S2 (Serious) |
Version: | 1.0.0 | OS: | Windows (Windows 2003) |
Assigned to: | Reggie Burnett | CPU Architecture: | Any |
[30 Sep 2004 3:46]
Craig Shield
[13 Oct 2004 18:00]
Reggie Burnett
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.mysql.com/documentation/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php Additional info: As far as I'm aware, there is no standard as to the parameter marker used. OdbcNet and OleDbClient use ?. Db2 uses ?. SqlClient uses @ We don't use @ since MySQl user variables start with @. That is also the reason why example #1 does not complain about a missing parameter. SELECT SiteName FROM Sites WHERE Sites.SiteId = @SiteId is a perfectly valid MySQL statement that is referencing a user variable named @SiteId. In this case, @SiteId is null so returns no records.
[14 Oct 2004 0:42]
Craig Shield
The documentation reference referred to does not have any documentation about the ADO.NET data provider for MySql!