Skip to content

Commit

Permalink
Hck 4263 fe ddl invalid query of creating a view including multiple d…
Browse files Browse the repository at this point in the history
…atabases (#36)

      * HCK-4263: fixed invalid format of view columns

* HCK-4263: replaced let with const because of immutability

---------

Co-authored-by: chulanovskyi-bs <[email protected]>
  • Loading branch information
WilhelmWesser and chulanovskyi-bs authored Jan 2, 2024
1 parent 58d9367 commit ae55a45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions forward_engineering/ddlProvider/ddlProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,7 @@ module.exports = (baseProvider, options, app) => {
tableName: data.entityName,
alias: data.alias,
isActivated: data.isActivated,
dbName: data.dbName,
};
},

Expand Down
2 changes: 1 addition & 1 deletion forward_engineering/utils/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ module.exports = _ => {
return result;
}

let tableName = wrapInQuotes(key.tableName);
const tableName = `${wrapInQuotes(key.dbName)}.${wrapInQuotes(key.tableName)}`;

if (!result.tables.includes(tableName)) {
result.tables.push(tableName);
Expand Down

0 comments on commit ae55a45

Please sign in to comment.