fix(MySQL): missing functions and procedures definer escapes on exporter

This commit is contained in:
Fabio Di Stasio 2022-03-01 10:15:06 +01:00
parent 9bda4e71b7
commit f0351e5b94
1 changed files with 5 additions and 2 deletions

View File

@ -268,10 +268,11 @@ ${footer}
let sqlString = '';
for (const func of functions) {
const definer = this.getEscapedDefiner(func.Definer);
sqlString += await this.getRoutineSyntax(
func.Name,
func.Type,
func.Definer
definer
);
}
@ -286,10 +287,12 @@ ${footer}
let sqlString = '';
for (const routine of routines) {
const definer = this.getEscapedDefiner(routine.Definer);
sqlString += await this.getRoutineSyntax(
routine.Name,
routine.Type,
routine.Definer
definer
);
}