mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 15:03:57 +00:00
fix: add null safety for mysql function w/o params
This commit is contained in:
@@ -217,7 +217,7 @@ class Analyser extends DatabaseAnalyser {
|
|||||||
.map(x => ({
|
.map(x => ({
|
||||||
...x,
|
...x,
|
||||||
createSql: `CREATE FUNCTION \`${x.pureName}\`(${getParametersSqlString(
|
createSql: `CREATE FUNCTION \`${x.pureName}\`(${getParametersSqlString(
|
||||||
functionNameToParameters[`${x.schemaName}.${x.pureName}`].filter(i => i.parameterMode !== 'RETURN')
|
functionNameToParameters[`${x.schemaName}.${x.pureName}`]?.filter(i => i.parameterMode !== 'RETURN')
|
||||||
)})\nRETURNS ${x.returnDataType} ${x.isDeterministic == 'YES' ? 'DETERMINISTIC' : 'NOT DETERMINISTIC'}\n${
|
)})\nRETURNS ${x.returnDataType} ${x.isDeterministic == 'YES' ? 'DETERMINISTIC' : 'NOT DETERMINISTIC'}\n${
|
||||||
x.routineDefinition
|
x.routineDefinition
|
||||||
}`,
|
}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user