Skip to content

Commit

Permalink
HCK-8896: fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightlngale committed Nov 29, 2024
1 parent bc962ef commit ddc19da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions forward_engineering/helpers/viewHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@ function getDefaultColumnList(properties) {
})
.join(',\n');

return list ? `(${list})` : '';
return list ? `\n(${list}\n)` : '';
}

function getTableSelectStatement({ _, collectionRefsDefinitionsMap, columns }) {
const fromStatement = getFromStatement(_)(collectionRefsDefinitionsMap, columns);
const columnsNames = getColumnNames(_)(collectionRefsDefinitionsMap, columns);

if (fromStatement && columnsNames?.length) {
return `AS SELECT ${joinColumnNames(columnsNames)}\n${fromStatement}`;
return `\nAS SELECT ${joinColumnNames(columnsNames)}\n${fromStatement}`;
}

return '';
Expand Down

0 comments on commit ddc19da

Please sign in to comment.