| Bug #19287 | Mysql Documentation | ||
|---|---|---|---|
| Submitted: | 23 Apr 2006 6:17 | Modified: | 24 Apr 2006 9:34 |
| Reporter: | Richard Dominguez | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | Connector / NET | Severity: | S3 (Non-critical) |
| Version: | 5.0 | OS: | Windows (Windows/Linux) |
| Assigned to: | CPU Architecture: | Any | |
[24 Apr 2006 9:34]
Tonci Grgin
Hi. Thanks for your report. I was unable to find this problem in current online version of document http://dev.mysql.com/doc/refman/5.0/en/connector-net-using-stored.html .

Description: In Mysql Documentation in the section 23.2.4.4. (Accessing Stored Procedures with MySQL Connector/NET) you write the next sample cmd.Parameters.Add("?lname", "Jones"); cmd.Parameters("?lname").Direction = ParameterDirection.Input; How to repeat: put in the code cmd.Parameters.Add("?lname", "Jones"); cmd.Parameters("?lname").Direction = ParameterDirection.Input; Suggested fix: this sample code is correct for to VB.NET, but not for C#, in C# (.NET and Mono) will be: cmd.Parameters.Add("?lname", "Jones"); cmd.Parameters["?lname"].Direction = ParameterDirection.Input; use square bracket and not bracket.