mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
fix(MySQL): missing functions and procedures definer escapes on exporter
This commit is contained in:
@@ -268,10 +268,11 @@ ${footer}
|
|||||||
let sqlString = '';
|
let sqlString = '';
|
||||||
|
|
||||||
for (const func of functions) {
|
for (const func of functions) {
|
||||||
|
const definer = this.getEscapedDefiner(func.Definer);
|
||||||
sqlString += await this.getRoutineSyntax(
|
sqlString += await this.getRoutineSyntax(
|
||||||
func.Name,
|
func.Name,
|
||||||
func.Type,
|
func.Type,
|
||||||
func.Definer
|
definer
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -286,10 +287,12 @@ ${footer}
|
|||||||
let sqlString = '';
|
let sqlString = '';
|
||||||
|
|
||||||
for (const routine of routines) {
|
for (const routine of routines) {
|
||||||
|
const definer = this.getEscapedDefiner(routine.Definer);
|
||||||
|
|
||||||
sqlString += await this.getRoutineSyntax(
|
sqlString += await this.getRoutineSyntax(
|
||||||
routine.Name,
|
routine.Name,
|
||||||
routine.Type,
|
routine.Type,
|
||||||
routine.Definer
|
definer
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user