Skip to content

Commit d6783d4

Browse files
committed
consfigs: fixed fieldKeyword for function definition
1 parent f0610e2 commit d6783d4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

forward_engineering/helpers/functionHelper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = ({ _, templates, assignTemplates, getFunctionArguments, getName
1010
returnType: udf.functionReturnsSetOf ? `SETOF ${udf.functionReturnType}` : udf.functionReturnType,
1111
language: udf.functionLanguage,
1212
properties: getProperties(udf),
13-
definition: udf.functionDefinition,
13+
definition: udf.functionBody,
1414
});
1515
}).join('\n');
1616
};

properties_pane/container_level/containerLevelConfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ making sure that you maintain a proper JSON format.
227227
},
228228
{
229229
"propertyName": "Definition",
230-
"propertyKeyword": "functionDefinition",
230+
"propertyKeyword": "functionBody",
231231
"propertyTooltip": "A string constant defining the function; the meaning depends on the language. It can be an internal function name, the path to an object file, an SQL command, or text in a procedural language.",
232232
"propertyType": "details",
233233
"template": "textarea",

reverse_engineering/helpers/postgresHelpers/functionHelper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const mapFunctionData = (functionData, functionArgs, additionalData) => {
6666
functionReturnsSetOf: additionalData?.returns_set,
6767
functionReturnType: functionData.return_data_type,
6868
functionLanguage: _.toLower(functionData.external_language),
69-
functionDefinition: functionData.routine_definition,
69+
functionBody: functionData.routine_definition,
7070
functionWindow: additionalData.kind === 'w',
7171
functionVolatility: getVolatility(additionalData?.volatility),
7272
functionLeakProof: additionalData?.leak_proof,

0 commit comments

Comments
 (0)