Skip to content

Commit 57edaef

Browse files
Hck 4263 fe ddl invalid query of creating a view including multiple databases (#86)
* HCK-4263: fixed invalid view columns name form * HCK-4263: replaced immutable variable with const --------- Co-authored-by: chulanovskyi-bs <[email protected]>
1 parent f29e33a commit 57edaef

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

forward_engineering/ddlProvider/ddlProvider.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,7 @@ module.exports = (baseProvider, options, app) => {
769769
tableName: data.entityName,
770770
alias: data.alias,
771771
isActivated: data.isActivated,
772+
dbName: data.dbName,
772773
};
773774
},
774775

forward_engineering/utils/general.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ module.exports = _ => {
222222
return result;
223223
}
224224

225-
let tableName = wrapInQuotes(key.tableName);
225+
const tableName = `${wrapInQuotes(key.dbName)}.${wrapInQuotes(key.tableName)}`;
226226

227227
if (!result.tables.includes(tableName)) {
228228
result.tables.push(tableName);

0 commit comments

Comments
 (0)