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
though, it is possible to create a procedure name with the symbol ` (backtick), it is highly not recommended to do so.
To call a procedure, you would normally do something like:
CALL procedure_name();
But with ` (backtick) as part of the name, in order to run a procedure, now you have to type as follow:
CALL `procedure``name`();
Introducing extra unecessary ` (backtick) to your code.
Which also causes unecessary complexity and introducing potential SQL syntax error.
It doesn't cause any convenience.
But, however, it's your code, so, it's up to you to decide.
Hi friend,
I have a problem that when my procedure name contains the character `, I get an error that cannot execute.
I cloned the source code and checked it in the file
https://github.com/MySqlBackupNET/MySqlBackup.Net/blob/master/source%20code/MySqlBackup(MySql.Data)/MySqlObjects/MySqlProcedure.cs
command to get procedure information throws exception
Original code
string sql = string.Format("SHOW CREATE PROCEDURE
{0};", procedureName);
I propose
string sql = string.Format("SHOW CREATE PROCEDURE
{0};", procedureName.Replace("
", "``"));`This is more extensible to configuration or implementation parameters to support more special characters
Note: Will have the same problem when creating sql content in the generated backup file.
Please consider my offer
Thank
The text was updated successfully, but these errors were encountered: