Bug #36205 | .net connector should provide means to manually escape strings | ||
---|---|---|---|
Submitted: | 18 Apr 2008 10:29 | Modified: | 25 Jul 2008 11:07 |
Reporter: | Jeremy Morton | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / NET | Severity: | S4 (Feature request) |
Version: | 5.2.1.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | manual escape string net connector |
[18 Apr 2008 10:29]
Jeremy Morton
[18 Apr 2008 10:29]
Jeremy Morton
edit.....
[18 Apr 2008 10:30]
Jeremy Morton
sorry, ignore the above, i was just testing the edit feature. :-)
[18 Apr 2008 10:31]
Jeremy Morton
One small comment to add to the above... the MySqlCommand.EscapeString() function would simply escape the string in exactly the same way as it would be escaped when you add it as a parameter using the .AddWithValue() method, and would return the escaped string.
[22 Apr 2008 11:48]
Tonci Grgin
Jeremy, thanks for reasonable feature request.
[22 Jul 2008 19:21]
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/50225
[22 Jul 2008 19:21]
Reggie Burnett
Fixed in 5.2.3
[25 Jul 2008 11:07]
Tony Bedford
An entry has been added to the 5.2.3 changelog: String escaping functionality has been moved from the MySqlString class to the MySqlHelper class, where it can be accessed by the EscapeString method.