Skip to content

Commit 059d74b

Browse files
FE: update checking that the function returns a table
1 parent 774d98b commit 059d74b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

forward_engineering/ddlProvider/ddlHelpers/functionHelper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ module.exports = ({ _, templates, assignTemplates, getFunctionArguments, getName
8585
};
8686

8787
const isFunctionReturnsTable = (udf) => {
88-
const returnType = (udf.functionReturnType || '').replace(/\s/g, '').toUpperCase();
89-
return returnType.startsWith('TABLE(');
88+
const returnType = (udf.functionReturnType || '').trim().toUpperCase();
89+
return returnType.startsWith('TABLE');
9090
};
9191

9292
return {

0 commit comments

Comments
 (0)