You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Handle backticks in stored procedure names. Fixes#1029
- Fix bug that didn't unescape backticks when getting stored procedure information.
- Update documentation to call this out as a change from Connector/NET.
- Note a Connnector/NET bug found during testing.
If [`CommandType`](../CommandType/) is Text, this is one or more SQL statements to execute. If [`CommandType`](../CommandType/) is StoredProcedure, this is the name of the stored procedure; any special characters in the stored procedure name must be quoted or escaped.
Copy file name to clipboardExpand all lines: docs/content/tutorials/migrating-from-connector-net.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,6 +148,8 @@ property doesn’t reference the active transaction. This fixes <a href="https:/
148
148
To disable this strict validation, set <code>IgnoreCommandTransaction=true</code>
149
149
in the connection string. See [Transaction Usage](/troubleshooting/transaction-usage/) for more details.
150
150
151
+
If `MySqlCommand.CommandType` is `CommandType.StoredProcedure`, the stored procedure name assigned to `MySqlCommand.CommandText` must have any special characters escaped or quoted. Connector/NET will automatically quote some characters (such as spaces); MySqlConnector leaves this up to the developer.
152
+
151
153
### MySqlDataAdapter
152
154
153
155
Connector/NET provides `MySqlDataAdapter.FillAsync`, `FillSchemaAsync`, and `UpdateAsync` methods, but these methods
@@ -284,3 +286,4 @@ The following bugs in Connector/NET are fixed by switching to MySqlConnector. (~
284
286
*[#103390](https://bugs.mysql.com/bug.php?id=103390): Can't query `CHAR(36)` column if `MySqlCommand` is prepared
285
287
*[#103801](https://bugs.mysql.com/bug.php?id=103801): `TimeSpan` parameters lose microseconds with prepared statement
286
288
*[#103819](https://bugs.mysql.com/bug.php?id=103819): Can't use `StringBuilder` containing non-BMP characters as `MySqlParameter.Value`
289
+
*[#104913](https://bugs.mysql.com/bug.php?id=104913): Cannot execute stored procedure with backtick in name
0 commit comments