From dc51bf12e2a923af7cecb6857e8f15c62b8035e5 Mon Sep 17 00:00:00 2001 From: yevhenii-moroziuk Date: Fri, 25 Oct 2024 15:49:45 +0300 Subject: [PATCH] HCK-8490: Escape quotes in comment in DDL: SQLServer --- forward_engineering/utils/general.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forward_engineering/utils/general.js b/forward_engineering/utils/general.js index 70390ee..267a47a 100644 --- a/forward_engineering/utils/general.js +++ b/forward_engineering/utils/general.js @@ -158,7 +158,7 @@ module.exports = _ => { return `[${name}]`; }; - const escapeSpecialCharacters = name => { + const escapeSpecialCharacters = (name = '') => { return name.replace(/'/g, "''"); };