From 194ccb4c98d3d6bb29e716fc0204b4ea98f09d30 Mon Sep 17 00:00:00 2001 From: Nazar Kovtun <88377450+WilhelmWesser@users.noreply.github.com> Date: Tue, 2 Jan 2024 16:49:58 +0200 Subject: [PATCH] HCK-4263: fixed invalid ddl for columns specification in cross schema view (#75) Co-authored-by: chulanovskyi-bs <56116665+chulanovskyi-bs@users.noreply.github.com> --- forward_engineering/ddlProvider/ddlHelpers/viewHelper.js | 2 +- forward_engineering/ddlProvider/ddlProvider.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/forward_engineering/ddlProvider/ddlHelpers/viewHelper.js b/forward_engineering/ddlProvider/ddlHelpers/viewHelper.js index 5c458ac..66b1fb6 100644 --- a/forward_engineering/ddlProvider/ddlHelpers/viewHelper.js +++ b/forward_engineering/ddlProvider/ddlHelpers/viewHelper.js @@ -31,7 +31,7 @@ module.exports = ({ _, wrapInQuotes }) => { return result; } - let tableName = wrapInQuotes(key.tableName); + const tableName = `${wrapInQuotes(key.dbName)}.${wrapInQuotes(key.tableName)}`; if (!result.tables.includes(tableName)) { result.tables.push(tableName); diff --git a/forward_engineering/ddlProvider/ddlProvider.js b/forward_engineering/ddlProvider/ddlProvider.js index 9464574..136d943 100644 --- a/forward_engineering/ddlProvider/ddlProvider.js +++ b/forward_engineering/ddlProvider/ddlProvider.js @@ -479,6 +479,7 @@ module.exports = (baseProvider, options, app) => { tableName: data.entityName, alias: data.alias, isActivated: data.isActivated, + dbName: data.dbName, }; },