From 0d0992f823383c15c2f5d645a4d8828bf75c5f8a Mon Sep 17 00:00:00 2001 From: oleg_chulanovskyi Date: Tue, 14 Nov 2023 13:20:46 +0200 Subject: [PATCH] fix: added quotes escape for the schema name --- forward_engineering/ddlProvider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forward_engineering/ddlProvider.js b/forward_engineering/ddlProvider.js index b59cb71e..702e0e10 100644 --- a/forward_engineering/ddlProvider.js +++ b/forward_engineering/ddlProvider.js @@ -373,7 +373,7 @@ module.exports = (baseProvider, options, app) => { constraint: fkData.name ? `CONSTRAINT ${getName(schemaData.isCaseSensitive, fkData.name)} ` : '', columns: foreignKeys, primary_table: getFullName( - fkData.primarySchemaName || schemaData.schemaName, + getName(fkData.primarySchemaName || schemaData.schemaName), getName(fkData.primaryTableIsCaseSensitive, fkData.primaryTable), ), primary_columns: primaryKeys,