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
Additionally, There is a problem in Excluding a table. The table was excluded but not the trigger associated with it.
Since you already have a collection of excluded tables can't you use it to filter the triggers?
.i.e Show Triggers Where `Table` not in ('tabmename','tablename');
As for the issue with importing the backup to Work Bench. This is the same for Procedures, Functions, Triggers and Events.
What you can do is double the delimiter before the routine name and after the END statement. Something like.
DELIMITER ;;
CREATE PROCEDURE MyProcedure()
BEGIN
END ;;
Export_WriteLine("DELIMITER " + ExportInfo.ScriptsDelimiter+ExportInfo.ScriptsDelimiter);
if (ExportInfo.ExportRoutinesWithoutDefiner)
Export_WriteLine(trigger.CreateTriggerSQLWithoutDefiner + " " + ExportInfo.ScriptsDelimiter + ExportInfo.ScriptsDelimiter);
else
Export_WriteLine(trigger.CreateTriggerSQL + " " + ExportInfo.ScriptsDelimiter + ExportInfo.ScriptsDelimiter);
Export_WriteLine("DELIMITER " + ExportInfo.ScriptsDelimiter);
With the above code I have successfully imported a backup without an error in Workbench Version 8.0.23 with MySql Server Version 5.7.33.
Thanks,
Dennis
The text was updated successfully, but these errors were encountered:
Although I still believe passing the Excluded tables object to your MyTriggerList Class would be better, but I don't think the above approach would make a noticeable performance issue.
Hi, @DennisRodriguez , thanks for the information provided. I will look into this issue in few days and I'll try to come out with a solution. thanks again.
Additionally, There is a problem in Excluding a table. The table was excluded but not the trigger associated with it.
Since you already have a collection of excluded tables can't you use it to filter the triggers?
.i.e
Show Triggers Where `Table` not in ('tabmename','tablename');
As for the issue with importing the backup to Work Bench. This is the same for Procedures, Functions, Triggers and Events.
What you can do is double the delimiter before the routine name and after the END statement. Something like.
The text was updated successfully, but these errors were encountered: