mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 00:36:01 +00:00
fix - mysql has not schema
This commit is contained in:
@@ -212,7 +212,7 @@ class Analyser extends DatabaseAnalyser {
|
|||||||
})),
|
})),
|
||||||
procedures: programmables.rows
|
procedures: programmables.rows
|
||||||
.filter(x => x.objectType == 'PROCEDURE')
|
.filter(x => x.objectType == 'PROCEDURE')
|
||||||
.map(x => _.omit(x, ['objectType']))
|
.map(x => _.omit(x, ['objectType', 'schemaName']))
|
||||||
.map(x => ({
|
.map(x => ({
|
||||||
...x,
|
...x,
|
||||||
createSql: `DELIMITER //\n\nCREATE PROCEDURE \`${x.pureName}\`(${getParametersSqlString(
|
createSql: `DELIMITER //\n\nCREATE PROCEDURE \`${x.pureName}\`(${getParametersSqlString(
|
||||||
@@ -224,7 +224,7 @@ class Analyser extends DatabaseAnalyser {
|
|||||||
})),
|
})),
|
||||||
functions: programmables.rows
|
functions: programmables.rows
|
||||||
.filter(x => x.objectType == 'FUNCTION')
|
.filter(x => x.objectType == 'FUNCTION')
|
||||||
.map(x => _.omit(x, ['objectType']))
|
.map(x => _.omit(x, ['objectType', 'schemaName']))
|
||||||
.map(x => ({
|
.map(x => ({
|
||||||
...x,
|
...x,
|
||||||
createSql: `CREATE FUNCTION \`${x.pureName}\`(${getParametersSqlString(
|
createSql: `CREATE FUNCTION \`${x.pureName}\`(${getParametersSqlString(
|
||||||
|
|||||||
Reference in New Issue
Block a user