Bug #25013 | Return Value parameter not found | ||
---|---|---|---|
Submitted: | 12 Dec 2006 15:44 | Modified: | 3 Jan 2007 10:57 |
Reporter: | Chris Sinclair | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / NET | Severity: | S3 (Non-critical) |
Version: | 5.0.2 | OS: | Windows (Windows 2000) |
Assigned to: | CPU Architecture: | Any |
[12 Dec 2006 15:44]
Chris Sinclair
[14 Dec 2006 13:40]
Tonci Grgin
Hi Chris and thanks for great problem report. Verified as described by reporter. To repeat one needs a function with at least 2 parameters, 2nd one having ParameterDirection ReturnValue. parameter_collection.cs private MySqlParameter AddReturnParameter(MySqlParameter value) { for (int i = 0; i < items.Count; i++) { MySqlParameter p = (MySqlParameter)items[i]; if (p.Direction != ParameterDirection.ReturnValue) continue; items[i] = value; return value; } items.Add(value); return value; } for (int i = 0; i < items.Count; i++) relies on parameter already being added. Tested on latest SVN sources.
[14 Dec 2006 18:57]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/16978
[14 Dec 2006 18:59]
Reggie Burnett
Fixed in 1.0.9 and 5.0.3
[14 Dec 2006 19:00]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/16979
[3 Jan 2007 10:57]
MC Brown
A note has been added to the 1.0.9 and 5.0.3 changelogs.