fix - mysql has not schema

This commit is contained in:
SPRINX0\prochazka
2024-12-04 10:16:58 +01:00
parent 20de78f88a
commit 5cc4c07941

View File

@@ -212,7 +212,7 @@ class Analyser extends DatabaseAnalyser {
})),
procedures: programmables.rows
.filter(x => x.objectType == 'PROCEDURE')
.map(x => _.omit(x, ['objectType']))
.map(x => _.omit(x, ['objectType', 'schemaName']))
.map(x => ({
...x,
createSql: `DELIMITER //\n\nCREATE PROCEDURE \`${x.pureName}\`(${getParametersSqlString(
@@ -224,7 +224,7 @@ class Analyser extends DatabaseAnalyser {
})),
functions: programmables.rows
.filter(x => x.objectType == 'FUNCTION')
.map(x => _.omit(x, ['objectType']))
.map(x => _.omit(x, ['objectType', 'schemaName']))
.map(x => ({
...x,
createSql: `CREATE FUNCTION \`${x.pureName}\`(${getParametersSqlString(